package
Version:
v0.0.0-...-f1d9af4
Opens a new window with list of versions in this module.
Published: Oct 25, 2024
License: AGPL-3.0, Apache-2.0, CC-BY-SA-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Dump returns a YAML representation of cfg.
func DumpAndExit ¶
func DumpAndExit(cfg interface{}) error
DumpAndExit writes the given config to stdout as YAML. If an error
occurs, that error is returned. Otherwise, the program exits 0.
Example:
log.Fatal(DumpAndExit(cfg))
func LoadFile(cfg interface{}, configPath string) error
LoadFile loads configuration from the file given by configPath and
decodes it into cfg.
YAML and JSON formats are supported.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.