Documentation ¶
Overview ¶
Package x hosts several packages, modules, and libraries that are common across most of my code for easy reuse. This package is very much in the spirit of golang.org/x though it does have a slightly longer import path as a result of being hosted in my GitHub repository.
One thing that I think is important to note is that most of the subpackages in this repository are independent. That is that they are implemented and tested separately from other subpackages. Future me and anyone who would like to use this package should only go get exactly what they need and rely on the documentation on godoc and in the subpackage README.md for more information.
Generally speaking, these things are simply ported out of my other applications once I discover that they need to be reused. The x repository gives me the ability to manage them all in the same version control without jumping through all the GitHub hoops. I'm not sure this is what was intended by Golang, but managing multiple repositories with just one or two files was too much of a pain, hence this system.
Directories ¶
Path | Synopsis |
---|---|
Package bandit implements multi-armed bandit strategies for random choice.
|
Package bandit implements multi-armed bandit strategies for random choice. |
Package cfrv implements conflict-free replicated versions of multiple types.
|
Package cfrv implements conflict-free replicated versions of multiple types. |
Package console implements simple hierarchical logging functionality.
|
Package console implements simple hierarchical logging functionality. |
Wrapper for a command line editor to edit files.
|
Wrapper for a command line editor to edit files. |
Package events provides an event dispatcher and registration framework.
|
Package events provides an event dispatcher and registration framework. |
Package interval provides an interface for time based event dispatchers.
|
Package interval provides an interface for time based event dispatchers. |
Package lock provides lock contention diagnostics for go mutexes.
|
Package lock provides lock contention diagnostics for go mutexes. |
Package net provides additional networking utilities and helpers.
|
Package net provides additional networking utilities and helpers. |
Package noplog implements a noop logger with a null writer.
|
Package noplog implements a noop logger with a null writer. |
Package peers provides helpers for defining and synchronizing remote peers on a network.
|
Package peers provides helpers for defining and synchronizing remote peers on a network. |
Package pid manages pid files for background process management.
|
Package pid manages pid files for background process management. |
Package stats implements an online computation of summary statistics.
|
Package stats implements an online computation of summary statistics. |
Package unique implements type-specific functions to deduplicate a slice and return a slice with only the unique elements in it.
|
Package unique implements type-specific functions to deduplicate a slice and return a slice with only the unique elements in it. |