Documentation
¶
Overview ¶
Package toolbox is a collection utility packages for Go.
The toolbox is a place where I collect stuff I either used and implemented multiple times already or I want to try out and don't have another place for it yet.
I try to keep everything tested and documented, but I don't guarantee to keep packages in here maintained.
If you find something of it useful, I recommend having a look on the implementation and do something similar on your own. According to the go proverb:
"A little copying is better than a little dependency." (Go Proverbs)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package constraints provides type constraints used by the iterator package.
|
Package constraints provides type constraints used by the iterator package. |
|
Package iterator implements composable iterator functions
|
Package iterator implements composable iterator functions |
|
reducer
Package reducer provides a few often used Reducers for iterator.Reduce
|
Package reducer provides a few often used Reducers for iterator.Reduce |
|
reducer/statistics
Package statistics provides reducers for gathering statistics from an iterator.
|
Package statistics provides reducers for gathering statistics from an iterator. |
|
Package must provides functions which panics on error and returns the value(s) passed to them.
|
Package must provides functions which panics on error and returns the value(s) passed to them. |
|
Package object provides utility methods to work with values where the underlying type is 'map[string]any'.
|
Package object provides utility methods to work with values where the underlying type is 'map[string]any'. |
|
Package optional provides a generic Optional type for Go.
|
Package optional provides a generic Optional type for Go. |
|
Package pool provides a convenient way to create a worker pools.
|
Package pool provides a convenient way to create a worker pools. |
|
Package result provides a simple result, wrapping either a value or an error.
|
Package result provides a simple result, wrapping either a value or an error. |
|
Package set provides an implementation of a set, meaning a collection of unique, unordered values.
|
Package set provides an implementation of a set, meaning a collection of unique, unordered values. |
|
Package tuple provides simple types for combining values.
|
Package tuple provides simple types for combining values. |
Click to show internal directories.
Click to hide internal directories.