Releases: pkg-id/env
Releases · pkg-id/env
Release v1.0.0
Release v1.0.0
This is the initial release of the env package, which provides a simple and convenient way to retrieve environment variables in Go. The package includes functions to retrieve environment variables of various data types, such as string, int, float64, bool, and time.Duration. It also includes a List function to parse a comma-separated list of environment variables into a slice.
Features:
- Added
Stringfunction to retrieve a string value from an environment variable. - Added
Intfunction to retrieve an int value from an environment variable. - Added
Int64function to retrieve an int64 value from an environment variable. - Added
Float64function to retrieve a float64 value from an environment variable. - Added
Durationfunction to retrieve a time.Duration value from an environment variable. - Added
Boolfunction to retrieve a bool value from an environment variable. - Added
Listfunction to retrieve a comma-separated list of values from an environment variable and parse them into a slice. - Added
ParserforString,Int,Int64,Float64,Bool, andtime.Duration.