config

package
v0.0.0-...-40ef913 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Map map[string]string
}

Conf 配置文件数据存于此结构的Map中

func ReadConfig

func ReadConfig(path string) (conf *Conf, err error)

ReadConfig 这个函数用于加载配置文件 path是文件路径

func (*Conf) GetBool

func (this *Conf) GetBool(key string) bool

func (*Conf) GetFloat

func (this *Conf) GetFloat(key string) (float64, error)

func (*Conf) GetInt

func (this *Conf) GetInt(key string) (int, error)

func (*Conf) GetInt64

func (this *Conf) GetInt64(key string) (int64, error)

func (*Conf) GetString

func (this *Conf) GetString(key string) string

Jump to

Keyboard shortcuts

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