Documentation ¶ Index ¶ func ErrNotFound(key string) error func ExecutionTime(start time.Time, name string) func GetEnv[V Value](key string) (V, error) func GetEnvOr[V Value](key string, def V) (V, error) func NewBool(val bool) *bool func NewString(val string) *string type Value Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ErrNotFound ¶ func ErrNotFound(key string) error ErrNotFound func ExecutionTime ¶ func ExecutionTime(start time.Time, name string) ExecutionTime is an utility func that prints a log with the execution time of a piece of code. func GetEnv ¶ func GetEnv[V Value](key string) (V, error) GetEnv func GetEnvOr ¶ func GetEnvOr[V Value](key string, def V) (V, error) GetEnvOr func NewBool ¶ func NewBool(val bool) *bool NewBool func NewString ¶ func NewString(val string) *string NewString Types ¶ type Value ¶ type Value interface { string | int | int8 | int16 | int32 | int64 } Value Source Files ¶ View all Source files elapsed.goos.gopointers.go Click to show internal directories. Click to hide internal directories.