yamlutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFlagsFromYaml

func SetFlagsFromYaml(fs *flag.FlagSet, rawYaml []byte) (err error)

SetFlagsFromYaml goes through all registered flags in the given flagset, and if they are not already set it attempts to set their values from the YAML config. It will use the key REPLACE(UPPERCASE(flagname), '-', '_')

Types

type ErrorSlice

type ErrorSlice []error

func (ErrorSlice) Error

func (e ErrorSlice) Error() string

Jump to

Keyboard shortcuts

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