Documentation ¶ Index ¶ func Load(configFilePath string, target any) error func Save(configFilePath string, data any) error type Processable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Load ¶ func Load(configFilePath string, target any) error Load the configuration into the target from a yaml file and environment variables. It will look for dotenv files in the current directory. target can implement the Processable interface to do any stuff after the config has been loaded. func Save ¶ func Save(configFilePath string, data any) error Save the given config data in the given file path. Types ¶ type Processable ¶ type Processable interface { PostLoad() error } Processable is an interface that can be implemented by the target of the Load function to do any stuff after a config has been loaded. Source Files ¶ View all Source files loader.go Click to show internal directories. Click to hide internal directories.