ini

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	*ini.File
}

func (*File) Bool

func (f *File) Bool(section, key string) bool

func (*File) Duration

func (f *File) Duration(section, key string) time.Duration

func (*File) Float64

func (f *File) Float64(section, key string) float64

func (*File) Int

func (f *File) Int(section, key string) int

func (*File) Int64

func (f *File) Int64(section, key string) int64

func (*File) String

func (f *File) String(section, key string) string

func (*File) Time

func (f *File) Time(section, key string) time.Time

func (*File) TimeFormat

func (f *File) TimeFormat(section, key, format string) time.Time

func (*File) Uint

func (f *File) Uint(section, key string) uint

func (*File) Uint64

func (f *File) Uint64(section, key string) uint64

type Ini

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

用于省略前缀长路径写法 例如,以下可用于多语言处理: ini := NewIni(conf.RootDir()+"/app.default) lang := ".zh_cn" cfg := ini.GetFile(lang) cfg.String("msg", "1001")

func NewIni

func NewIni(rootPath string) *Ini

func (*Ini) GetDefaultFile

func (ini *Ini) GetDefaultFile(subFileName, subDefaultFileName string) *File

func (*Ini) GetFile

func (ini *Ini) GetFile(subFileName string) *File

Jump to

Keyboard shortcuts

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