Documentation ¶
Index ¶
- Variables
- type FileExtType
- type FsBroker
- func (fs *FsBroker) Close() error
- func (fs *FsBroker) Decode(input interface{}, output interface{}, weaklyTypedInput bool) error
- func (fs *FsBroker) LoadContent() ([]byte, error)
- func (fs *FsBroker) Notify() <-chan struct{}
- func (fs *FsBroker) Parse(content []byte) (error, map[string]interface{})
- func (fs *FsBroker) Watch()
Constants ¶
This section is empty.
Variables ¶
View Source
var UnmarshallerMap = map[FileExtType]unmarshaller{ FileExtToml: toml.Unmarshal, FileExtJson: json.Unmarshal, FileExtYaml: yaml.Unmarshal, }
Functions ¶
This section is empty.
Types ¶
type FileExtType ¶
type FileExtType string
const FileExtJson FileExtType = "json"
const FileExtToml FileExtType = "toml"
const FileExtYaml FileExtType = "yaml"
func ExtParser ¶
func ExtParser(file string) FileExtType
Click to show internal directories.
Click to hide internal directories.