conf

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(file string) *viper.Viper

func Init

func Init(paths ...string) error

func UnmarshalKeyTOML

func UnmarshalKeyTOML(file, key string, dst interface{}) (err error)

func UnmarshalTOML added in v1.0.12

func UnmarshalTOML(file string, dst interface{}) (err error)

func Watch

func Watch(file, key string, dst interface{})

func WatchFile added in v1.0.12

func WatchFile(file string, dst interface{})

Types

type Client

type Client struct {
	sync.RWMutex
	// contains filtered or unexported fields
}
var (
	// DefaultClient default client.
	DefaultClient *Client
)

Jump to

Keyboard shortcuts

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