cfgutil

package
v0.0.0-...-90f2f4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYAML

func ParseYAML(target, def interface{}, files ...string) error

ParseYAML attempts to load and parse the files given by files and store the contents of the files in the struct given by target. It will overwrite any conflicting keys by the keys in the subsequent files. Missing files will not cause an error but will just be skipped. After parsing all files any top level structs which are empty will be replaced by their value from def.

func PermissiveParseYAML

func PermissiveParseYAML(target interface{}, files ...string) error

PermissiveParseYAML is a variant of ParseYAML that disables gopkg.in/yaml.v2's strict mode

DO NOT USE.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL