Discover Packages
github.com/zacscoding/go-rest-template
pkg
cfgloader
package
Version:
v0.0.0-...-fc07508
Opens a new window with list of versions in this module.
Published: May 17, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
LoadWithOptions loads config with given options.
Override overrides the configuration value based on the given newValues.
WithConfigFile loads config from the given file.
Currently, supports "yaml" and "json" files.
WithConfigMap loads config from the given configMap which "." separated keys.
WithEnv loads config from environments.
Use Kebab case for proper parsing.
For example, The env value "{PREFIX}SERVER_PORT=8080" will be parsed to "server.port=8080".
"{PREFIX}SERVER_READ-TIMEOUT=5m" to "server.read-timeout=5m".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.