iniconf

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INILoader

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

INILoader 从ini 文件中加配置数据

func New

func New(path string) *INILoader

New 新建INILoader

func NewContent

func NewContent(content []byte) *INILoader

NewContent 从字符串生成 ini struct for test

func (*INILoader) Load

func (loader *INILoader) Load() (*config.Config, error)

Load 实现Loader 接口 Load()

func (*INILoader) Save

func (loader *INILoader) Save(conf *config.Config) error

Save 实现Loader 接口 Save()

Jump to

Keyboard shortcuts

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