Documentation ¶
Overview ¶
Package config provides helper functions for reading a JSON formatted configuration file into an arbitrary struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarshalledEnvironmentVar ¶
type MarshalledEnvironmentVar struct { EnvKey string EnvVal string StructFieldName string Error error }
func LoadFromEnv ¶
func LoadFromEnv(v interface{}, prefix string) (result []MarshalledEnvironmentVar)
LoadFromEnv iterates through a struct's fields and tries to find matching environment variables. Returns a map of environment key and values that were successfully set into the struct
Click to show internal directories.
Click to hide internal directories.