config

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHomeNotFound = errors.New("$HOME not found")
)

Functions

func GetDir

func GetDir(app string) (dir string, err error)

func GetPath

func GetPath() string

func Init

func Init(cflag, app, default_conf string)

func Load

func Load(conf interface{}) (err error)

func LoadBytes

func LoadBytes(conf interface{}, data []byte) (err error)

func LoadEx

func LoadEx(conf interface{}, confName string) (err error)

func LoadFile

func LoadFile(conf interface{}, confName string) (err error)

func LoadString

func LoadString(conf interface{}, data string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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