Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func From ¶
func From(content []byte, configType ConfigType) (Config, error)
解析配置文件(并放置于map中) $content 文件内容 $configType 文件类型 $target 目标数据结构
type ConfigType ¶
type ConfigType string
支持的配置类型
const ( Json ConfigType = "json" Yaml ConfigType = "yaml" Properties ConfigType = "properties" // 以 '=' 分割的配置文件 关键字 '=' '#' )
Click to show internal directories.
Click to hide internal directories.