How exonlabs/go-utils works
This repository is a Go utility library rather than a single end-user application. Its principal workflow is for an application to call the package that matches a need—such as configuration, communication, logging, or process management—and receive the package’s result. The graph preserves the major runtime package areas shown in the tree and source index; source excerpts are incomplete, so links are limited to relationships visible in the supplied excerpts or index.
Main entry points: comm.go Comm interfaces · jconfig.go JSON config · process.go Process control · tasklet.go Tasklet lifecycle
Components 27
Communication
- Comm interfaces
pkg/comm/comm.go - Network comm
pkg/comm/netcomm/network.go - Serial comm
pkg/comm/serialcomm/serial.go - Socket comm
pkg/comm/sockcomm/sock.go - Comm logging
pkg/comm/utils.go
Application Services
- JSON config
pkg/jconfig/jconfig.go - Config handlers
pkg/jconfig/handlers.go - AES ciphering
pkg/ciphering/aes.go - Console input
pkg/console/console.go - Logging
pkg/logging/logger.go - Log formatting
pkg/logging/formatter.go - Log handlers
pkg/logging/handlers.go
Process Runtime
- Process control
pkg/proc/process.go - Tasklet lifecycle
pkg/proc/tasklet.go - Routine manager
pkg/proc/routine.go - Events
pkg/events/event.go - FIFO queue
pkg/queue/fifo.go
System I/O
- Named pipes
pkg/unix/namedpipes/pipe.go - Pipe OS operations
pkg/unix/namedpipes/pipe_unix.go - Unix process tools
pkg/unix/psutils/psutils_unix.go
Common Utilities
- Dictionary helpers
pkg/abc/dictx/src.go - Filesystem helpers
pkg/abc/fsx/src.go - Generic helpers
pkg/abc/gx/src.go - Map helpers
pkg/abc/mapx/src.go - Number helpers
pkg/abc/numx/src.go - Slice helpers
pkg/abc/slicex/src.go
Other components
- Go application
Connections 21
- Go application → Comm interfaces: uses interfaces
- Go application → JSON config: loads or saves
- Go application → Console input: reads input
- Go application → Logging: logs through
- Go application → Process control: manages process
- Go application → Named pipes: exchanges data
- Network comm → Comm interfaces: uses interfaces
pkg/comm/netcomm/network.go - Serial comm → Comm interfaces: uses interfaces
pkg/comm/serialcomm/serial.go - Socket comm → Comm interfaces: uses interfaces
pkg/comm/sockcomm/sock.go - Network comm → Comm logging: logs traffic
pkg/comm/netcomm/network.go - Serial comm → Comm logging: logs traffic
pkg/comm/serialcomm/serial.go - Socket comm → Comm logging: logs traffic
pkg/comm/sockcomm/sock.go - JSON config → Dictionary helpers: updates values
pkg/jconfig/jconfig.go - JSON config → AES ciphering: encrypts values
pkg/jconfig/jconfig.go - JSON config → Config handlers: reads and writes
pkg/jconfig/jconfig.go - Process control → Comm interfaces: registers listener
pkg/proc/process.go - Process control → Tasklet lifecycle: runs lifecycle
pkg/proc/process.go - Routine manager → Tasklet lifecycle: creates handler
pkg/proc/routine.go - Tasklet lifecycle → Events: signals lifecycle
pkg/proc/tasklet.go - Named pipes → Events: waits on events
pkg/unix/namedpipes/pipe.go - Pipe OS operations → Generic helpers: uses helpers
pkg/unix/namedpipes/pipe_unix.go