Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INIParser ¶
type INIParser struct{}
INIParser handles INI configuration files.
func (*INIParser) Extensions ¶
type JSONParser ¶
type JSONParser struct{}
JSONParser handles JSON configuration files.
func (*JSONParser) Extensions ¶
func (p *JSONParser) Extensions() []string
type Parser ¶
type Parser interface {
// Extensions returns the list of file extensions (without the dot) that this parser handles.
Extensions() []string
// Unmarshal parses the given data into a nested map.
Unmarshal(data []byte) (map[string]interface{}, error)
}
Parser defines the interface for configuration file parsers.
type PropertiesParser ¶
type PropertiesParser struct{}
PropertiesParser handles .properties configuration files.
func (*PropertiesParser) Extensions ¶
func (p *PropertiesParser) Extensions() []string
type TOMLParser ¶
type TOMLParser struct{}
TOMLParser handles TOML configuration files.
func (*TOMLParser) Extensions ¶
func (p *TOMLParser) Extensions() []string
type XMLParser ¶
type XMLParser struct{}
XMLParser handles XML configuration files using the mxj library.
func (*XMLParser) Extensions ¶
type YAMLParser ¶
type YAMLParser struct{}
YAMLParser handles YAML configuration files.
func (*YAMLParser) Extensions ¶
func (p *YAMLParser) Extensions() []string
Click to show internal directories.
Click to hide internal directories.