package
0.18.6
Repository: https://github.com/top-solution/go-libs.git
Documentation: pkg.go.dev

# Functions

ParseConfig parses a file config, fetching the (optional) config file name from a flag or env var It expects a config file passed via the --config-file flag or CONFIG_FILE env var, defaulting to conf.yml It will also provide a way to set config values via env vars or flags, and add a --version and --help command in the final executable The --help text will be populated by analyzing the struct of the passed cfg The --version text will be populated via github.com/top-solution/go-libs/version.
ParseConfig parses a file config, given the file path, expecting the prefix See ardanlabs/conf's docs to see the usefulness of a prefix.

# Structs

DBConfig is a default config struct used to connect to a database.
EmailConfig is a default config struct for e-mail.
LogConfig is a default config struct for logs.