Documentation ¶ Index ¶ func Get[T any](key string, def T) T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get[T any](key string, def T) T Get retrieves an environment variable and parses it to the type of the default value. If the value is not set or cannot be parsed, the default value is returned. Supported types: bool, int, float64, string, time.Duration Types ¶ This section is empty. Source Files ¶ View all Source files env.go Click to show internal directories. Click to hide internal directories.