Documentation
¶
Overview ¶
Package helpers contains small utility methods that don't belong anywhere else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvWithDefault ¶
GetEnvWithDefault reads an environment variable, parses it to the specified type T, and returns the parsed value. If the environment variable is empty, unparsable, or fails validation, the defaultValue is returned instead.
Supported types: string, int, bool, float64, time.Duration. For unsupported types, the default value is always returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.