viper_tool

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequired               = fmt.Errorf("required")
	ErrMutualReference        = fmt.Errorf("mutual reference or invalid value")
	ErrOverlayHierarchicalKey = fmt.Errorf("overlay hierarchical key")
)

Functions

func SetValueHierarchicalMap

func SetValueHierarchicalMap(m map[string]interface{}, key string, val interface{}) error

Types

type EnvBinder

type EnvBinder struct {
	// contains filtered or unexported fields
}

func NewEnvBinder

func NewEnvBinder(viper *viper.Viper) *EnvBinder

func (*EnvBinder) Bind

func (b *EnvBinder) Bind(iface interface{}) error

Jump to

Keyboard shortcuts

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