Documentation ¶
Overview ¶
Package nonstdlib comprises extensions to the Go stdlib, either to increase featureset or testability, and other utility code. Where possible, we mirror the stdlib package naming, though in practice, we commonly import packages with a tbn prefix for clarity, eg:
import ( "os" tbnos "github.com/turbinelabs/nonstdlib/os" )
Directories ¶
Path | Synopsis |
---|---|
Package arrays includes several sub-packages allowing type-safe execution of tasks commonly applied to slices.
|
Package arrays includes several sub-packages allowing type-safe execution of tasks commonly applied to slices. |
dedupe
Package dedupe comprises types and functions in support of removing duplicates from a slice of a given type.
|
Package dedupe comprises types and functions in support of removing duplicates from a slice of a given type. |
indexof
Package indexof comprises types and functions in support of finding the index of a target value within a slice of same-typed values.
|
Package indexof comprises types and functions in support of finding the index of a target value within a slice of same-typed values. |
Package editor provides simple wrappers for interacting with an environment configured text editor.
|
Package editor provides simple wrappers for interacting with an environment configured text editor. |
Package executor provides a mechanism for asynchronous execution of tasks, using callbacks to indicate success or failure.
|
Package executor provides a mechanism for asynchronous execution of tasks, using callbacks to indicate success or failure. |
Package flag provides convenience methods for dealing with golang flag.FlagSets
|
Package flag provides convenience methods for dealing with golang flag.FlagSets |
usage
Package usages provides a mechanism to insert and recover richer usage information (eg whether a flag is required, whether it contains sensitive information) into and from a flag.Flag usage string, respectively.
|
Package usages provides a mechanism to insert and recover richer usage information (eg whether a flag is required, whether it contains sensitive information) into and from a flag.Flag usage string, respectively. |
Package io contains utilities for working with the standard io package
|
Package io contains utilities for working with the standard io package |
Package log provides infrastructure for topic based logging to files.
|
Package log provides infrastructure for topic based logging to files. |
console
Package console provides simple console logging to Stderr, configurable through a FlagSet.
|
Package console provides simple console logging to Stderr, configurable through a FlagSet. |
Package math provides mathematical utilities.
|
Package math provides mathematical utilities. |
Package must is a convenience wrapper for extracting useful information out of (data, error) tuples when you really just want the data and exiting on errors is acceptable.
|
Package must is a convenience wrapper for extracting useful information out of (data, error) tuples when you really just want the data and exiting on errors is acceptable. |
Package os provides an OS interface mirroring a subset of commonly used functions and variables from the golang os package.
|
Package os provides an OS interface mirroring a subset of commonly used functions and variables from the golang os package. |
exec
Package exec provides extensions of the os/exec package that provides streamlined execution of a command.
|
Package exec provides extensions of the os/exec package that provides streamlined execution of a command. |
Package proc provides a mechanism for running processes under management.
|
Package proc provides a mechanism for running processes under management. |
proc-test
proc-test is a trivial application that responds to signals such as those sent by proc.LoggingCommand and proc.ManagedProc
|
proc-test is a trivial application that responds to signals such as those sent by proc.LoggingCommand and proc.ManagedProc |
Package ptr provides convenience and conversion methods for working with pointer types.
|
Package ptr provides convenience and conversion methods for working with pointer types. |
Package regexp is a place to put useful regex patterns
|
Package regexp is a place to put useful regex patterns |
Package strings introduces additional utilities for dealing with strings and slices of strings.
|
Package strings introduces additional utilities for dealing with strings and slices of strings. |
text
|
|
tabwriter
Package tabwriter provides a set of sane defaults for converting tab separated values into a pretty column formatted output.
|
Package tabwriter provides a set of sane defaults for converting tab separated values into a pretty column formatted output. |
Package time provides utility functions for go time.Time instances.
|
Package time provides utility functions for go time.Time instances. |
Click to show internal directories.
Click to hide internal directories.