Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONFIG_TP_INI = "ini" CONFIG_TP_JSON = "json" CONFIG_TP_YAML = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func Register ¶
func Register(cfgtp string, mgr CfgManager)
Types ¶
type CfgManager ¶
type ConfigJson ¶
type ConfigJson struct { }
func (ConfigJson) Parse ¶
func (cj ConfigJson) Parse(data []byte, out interface{}) error
type ConfigYaml ¶
type ConfigYaml struct { }
func (ConfigYaml) Parse ¶
func (cy ConfigYaml) Parse(data []byte, out interface{}) error
Click to show internal directories.
Click to hide internal directories.