config

package
v0.0.0-...-470b5b4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDataHome

func AppDataHome() string

func GetConfig

func GetConfig(name string) (val interface{}, exist bool)

获取配置信息

func GetConfigWithDefault

func GetConfigWithDefault(name string, def interface{}) interface{}

获取配置信息,如果不存在则返回指定的默认值def

func GetInt

func GetInt(name string) (val int64, ex bool)

func GetString

func GetString(name string) (val string, ex bool)

func GetStringArray

func GetStringArray(name string) (val []string, ex bool)

func Parse

func Parse()

解析配置文件

func Set

func Set(name string, val typo.Any)

直接设置/修改配置

Types

type ConfigEntry

type ConfigEntry = typo.Any

Jump to

Keyboard shortcuts

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