xconfig

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(section, key string, _def ...bool) bool

func GetFloat32

func GetFloat32(section, key string, _def ...float32) float32

func GetFloat64

func GetFloat64(section, key string, _def ...float64) float64

func GetInt

func GetInt(section, key string, _def ...int) int

func GetInt32

func GetInt32(section, key string, _def ...int32) int32

func GetInt64

func GetInt64(section, key string, _def ...int64) int64

func GetInt8

func GetInt8(section, key string, _def ...int8) int8

func GetStr

func GetStr(section, key string, _def ...string) string

读取字符串

func GetUint

func GetUint(section, key string, _def ...uint) uint

func GetUint32

func GetUint32(section, key string, _def ...uint32) uint32

func GetUint64

func GetUint64(section, key string, _def ...uint64) uint64

func GetUint8

func GetUint8(section, key string, _def ...uint8) uint8

func KeyExists

func KeyExists(section, key string) bool

func New

func New(file string)

func SectionExists

func SectionExists(section string) bool

func Set

func Set(section, key, value string)

Types

type XConfig

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

* 专门读取配置的文件

Jump to

Keyboard shortcuts

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