jsonconf

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 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 JSONLoader

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

JSONLoader 从json 文件中加配置数据

func New

func New(path string) *JSONLoader

New 新建JSONLoader

func (*JSONLoader) Load

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

Load 实现Loader 接口 Load()

func (*JSONLoader) Save

func (loader *JSONLoader) 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