Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
type ConfigFile struct { }
ConfigFile json文件读写
func (*ConfigFile) Load ¶
func (t *ConfigFile) Load(fileName string, unmarshal func([]byte) (interface{}, error)) (interface{}, error)
Load json文件读
func (*ConfigFile) Write ¶
func (t *ConfigFile) Write(content interface{}, configPath string) error
Write json文件写
Click to show internal directories.
Click to hide internal directories.