config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFromViper

func GetConfigFromViper(config interface{}) error

GetConfigFromViper is used to marshall viper's settings into a given struct. Instantiate your config struct and pass in a pointer to it. Any validation errors will be returned. To ensure accurate marshalling, make sure your struct's json tags match your cobra flag names / viper settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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