module
Version:
v1.12.0
Opens a new window with list of versions in this module.
Published: Jan 14, 2024
License: MIT
Opens a new window with license information.
README
¶
Utilities
![Go Report Card Widget](https://goreportcard.com/badge/github.com/aperturerobotics/util)
Various utilities for Go and TypeScript including:
- backoff: configurable backoff
- broadcast: channel-based broadcast (similar to sync.Cond)
- ccall: call a set of functions concurrently and wait for error or exit
- ccontainer: concurrent container for objects
- commonprefix: find common prefix between strings
- cqueue: concurrent atomic queues (LIFO)
- conc: concurrent processing queue
- csync: sync primitives supporting context arguments
- debounce-fswatcher: debounce fs watcher events
- exec: wrapper around Go os exec
- fsutil: utilities for os filesystem
- iocloser: wrap reader/writer with a close function
- iosizer: read/writer with metrics for size
- keyed: key/value based routine management
- linkedlist: linked list with head/tail
- memo: memoize a function: call it once and remember results
- padding: pad / unpad a byte array slice
- prng: psuedorandom generator with seed
- promise: promise mechanics for Go (like JS)
- refcount: reference counter ccontainer
- routine: start, stop, restart, reset a goroutine
- scrub: zero a buffer after usage
License
MIT
Directories
¶
Click to show internal directories.
Click to hide internal directories.