Documentation
¶
Overview ¶
Package for configuration, provide basic config struct and utility to load.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgramConfig ¶
type ProgramConfig struct {
Folder folderConfig `koanf:"default"` // Config setting for folders
Metadata metadataConfig `koanf:"metadata"` // Config for metadata default values
Database databaseConfig `koanf:"database"` // Config for database to use
TrashBin trashBinConfig `koanf:"trash-bin"` // Config of trash bin usage
}
Config for this program.
func LoadYaml ¶
func LoadYaml(path string) (*ProgramConfig, error)
Load yaml config from given path, while no koanf instance will preserved (i.e. every call overwrite previous call).
If failed to load config, then a default config will be returned.
Click to show internal directories.
Click to hide internal directories.