Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindStruct ¶
func BindStruct(config interface{}, provider dataProvider) error
BindStruct binds data from a provider to a struct's fields using reflection.
func LoadAndBindEnvFile ¶
LoadAndBindEnvFile loads environment variables from a file at the given path and binds them to a struct.
func LoadAndBindEnvReader ¶
LoadAndBindEnvReader loads environment variables from a reader and binds them to a struct.
func LoadEnvFile ¶
LoadEnvFile loads environment variables from a file at the given path.
func LoadEnvReader ¶
LoadEnvReader loads environment variables from a reader (e.g., a file) and sets them as environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.