Documentation ¶
Index ¶
- func Dump(filePath string, obj interface{}) error
- func Dumps(obj interface{}) (string, error)
- func Load(filePath string, obj interface{}) error
- func Loads(str string, obj interface{}) error
- func ReadConfig(configObj interface{}, configFileList ...string) error
- func ReadDefaultConfig(configObj interface{}) error
- type Json
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶ added in v0.1.1
ReadConfig 读取配置,支持同时读取多个
func ReadDefaultConfig ¶ added in v0.1.1
func ReadDefaultConfig(configObj interface{}) error
ReadDefaultConfig 读取默认配置。默认公共配置config/config.json,默认私密配置config/secret/.config.json
Types ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json.
|
Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. |
Package match provides a simple pattern matcher with unicode support.
|
Package match provides a simple pattern matcher with unicode support. |
Click to show internal directories.
Click to hide internal directories.