Categorygithub.com/wrapp/env
modulepackage
0.1.0
Repository: https://github.com/wrapp/env.git
Documentation: pkg.go.dev

# README

env

Convenience functions for working with environment variables

env.Default

gets the value of an environment variable or a default if not set

env.Bool

returns the boolean value of a environment variable

"true", "1", "yes", "on" in any casing are considered true

# Functions

Bool returns the boolean value of a environment variable "true", "1", "yes", "on" in any casing are considered true.
Default gets the value of an environment variable or a default if not set.
DefaultInt gets the parsed int value of an environment variable or a default if not set or parsing failed.