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
String
function to retrieve a string value from an environment variable. - Added
Int
function to retrieve an int value from an environment variable. - Added
Int64
function to retrieve an int64 value from an environment variable. - Added
Float64
function to retrieve a float64 value from an environment variable. - Added
Duration
function to retrieve a time.Duration value from an environment variable. - Added
Bool
function to retrieve a bool value from an environment variable. - Added
List
function to retrieve a comma-separated list of values from an environment variable and parse them into a slice. - Added
Parser
forString
,Int
,Int64
,Float64
,Bool
, andtime.Duration
.