iniparser

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IniParser

type IniParser struct {
	INIReader *ini.File
}

IniParser ini解析器

func (*IniParser) GetBool

func (i *IniParser) GetBool(section, key string) bool

GetBool 获取布尔值

func (*IniParser) GetFloat32

func (i *IniParser) GetFloat32(section, key string) float32

GetFloat32 获取float32参数

func (*IniParser) GetFloat64

func (i *IniParser) GetFloat64(section, key string) float64

GetFloat64 获取float64参数

func (*IniParser) GetInt

func (i *IniParser) GetInt(section, key string) int

GetInt 获取整形参数

func (*IniParser) GetInt64

func (i *IniParser) GetInt64(section, key string) int64

GetInt64 获取整形参数

func (*IniParser) GetString

func (i *IniParser) GetString(section, key string) string

GetString 获取字符串参数

func (*IniParser) Load

func (i *IniParser) Load(iniFile string) error

Load 加载ini配置文件

Jump to

Keyboard shortcuts

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