Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLoader ¶
Decoder must be able to read specific document, and return key/value
func JSONDecoder ¶
func JSONDecoder(r io.Reader) ConfigLoader
func JSONFileDecoder ¶
func JSONFileDecoder(filename string) ConfigLoader
func TOMLDecoder ¶
func TOMLDecoder(r io.Reader) ConfigLoader
func TOMLFileDecoder ¶
func TOMLFileDecoder(filename string) ConfigLoader
func YAMLDecoder ¶
func YAMLDecoder(r io.Reader) ConfigLoader
func YAMLFileDecoder ¶
func YAMLFileDecoder(filename string) ConfigLoader
type Contree ¶
type Contree struct {
// contains filtered or unexported fields
}
func NewContree ¶
func (*Contree) Import ¶
func (c *Contree) Import(loaders ...ConfigLoader) error
Import can take multiple Decoder that extract all data, and transform them to a key/value set of data, and set recursivly into the contree object
type NodeConf ¶
func (*NodeConf) SetRecursivly ¶
Click to show internal directories.
Click to hide internal directories.