config

package
v0.0.0-...-d98b8c8 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(name string) bool

GetBool .

func GetI64

func GetI64(name string) int64

GetI64 .

func GetInt

func GetInt(name string) int

GetInt .

func GetNum

func GetNum(name string) float64

GetNum .

func GetString

func GetString(name string) string

GetString .

func HasSavedCfg

func HasSavedCfg() bool

HasSavedCfg .

func IsLog

func IsLog() bool

IsLog . func IsLog() bool { return cfg.Log != "" }

func Load

func Load()

Load saved configure to the default config.

func LogPath

func LogPath() string

LogPath .

Types

type C

type C map[string]interface{}

C .

func Config

func Config() *C

Config return the instance of the inner config.

func (*C) Dump

func (c *C) Dump() error

Dump .

func (C) GetBool

func (c C) GetBool(name string) bool

GetBool .

func (C) GetI64

func (c C) GetI64(name string) int64

GetI64 .

func (C) GetInt

func (c C) GetInt(name string) int

GetInt .

func (C) GetNum

func (c C) GetNum(name string) float64

GetNum .

func (C) GetString

func (c C) GetString(name string) string

GetString .

func (*C) Load

func (c *C) Load(p string) error

Load .

Jump to

Keyboard shortcuts

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