cfg

package
v0.0.0-...-67faadc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefault

func SetDefault(key string, value interface{})

wrapper for setting default values.

Types

type Cfg

type Cfg struct {
	*viper.Viper
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(v *viper.Viper) *Cfg

func (*Cfg) OnChange

func (c *Cfg) OnChange(l listener)

func (*Cfg) Watch

func (c *Cfg) Watch()

Jump to

Keyboard shortcuts

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