package
0.0.0-20230203010516-6d4bf48beedd
Repository: https://github.com/onyx-protocol/onyx.git
Documentation: pkg.go.dev
# README
Package env provides a convenient way to initialize variables from the environment.
# Functions
Bool returns a new bool pointer.
BoolVar defines a bool var with the specified name and default value.
Duration returns the value of the named environment variable, interpreted as a time.Duration (using time.ParseDuration).
Int returns a new int pointer.
IntVar defines an int var with the specified name and default value.
Parse parses known env vars and assigns the values to the variables that were previously registered.
String returns a new string pointer.
StringSlice returns a pointer to a slice of strings.
StringSliceVar defines a new string slice with the specified name.
StringVar defines a string with the specified name and default value.
URL returns a new url.URL pointer.
URLVar defines a url.URL variable with the specified name ande default value.