modulepackage
0.0.0-20200607073532-878f23c759d1
Repository: https://github.com/kopoli/go-util.git
Documentation: pkg.go.dev
# README
NOTE: This is deprecated in favor of Appkit.
go-util
Some generic code for my personal projects. A shared repository to reduce copy-pasting.
MIT-License
# Functions
Fault checks if given err is != nil and if it is runs os.Exit(1).
GetOptions gets the static options structure.
NewErrorList returns an initialized ErrorList.
NewOptions returns a new Options structure.
SetupProfiler sets up an empty profiler with Options.
VersionString returns a version string that should be printed with the -v or the --version flag.
# Variables
The default error handler.
# Structs
No description provided by the author
ErrorList is a list of errors that can be printed in a single go.
Profiler is a structure to simplify generating CPU and memory profile files from a run of a program.
# Interfaces
Options is an interface to get and set string-like options for components.