gocfg

package module
v0.0.0-...-e98f6a5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

gocfg

go 配置文件读取

使用方法

go get -u -v github.com/MWangxj/gocfg

s := &struct{}
if err := gocfg.Load(".ini config file path",s); err != nil {
    errHandle(err)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filePath string, gcfg interface{}) error

func LoadYml

func LoadYml(filepath string, gcfg interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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