config

package
v0.0.0-...-d705234 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNodeNotExists = errors.New("node not exists")
)

Functions

func LoadConfig

func LoadConfig(path []string)

Types

type Config

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

func GetInstance

func GetInstance() *Config

func (*Config) Bind

func (conf *Config) Bind(node, key string, obj interface{}) error

func (*Config) GetChildConf

func (conf *Config) GetChildConf(node, key, subKey string) (interface{}, error)

Jump to

Keyboard shortcuts

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