Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Marshals = map[string]Marshal{ "json": json.Marshal, "xml": xml.Marshal, "yaml": yaml.Marshal, "yml": yaml.Marshal, "toml": func(v interface{}) ([]byte, error) { b := bytes.NewBuffer(nil) defer b.Reset() err := toml.NewEncoder(b).Encode(v) if err != nil { return nil, err } return b.Bytes(), nil }, } Unmarshals = map[string]Unmarshal{ "json": json.Unmarshal, "xml": xml.Unmarshal, "yaml": yaml.Unmarshal, "yml": yaml.Unmarshal, "toml": toml.Unmarshal, } )
View Source
var DefaultPrefix = "/ceres/config/"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.