Documentation ¶
Index ¶
- func EnvRead(r io.Reader) (interface{}, error)
- func EnvSimpleRead(r io.Reader) (interface{}, error)
- func EnvSimpleWrite(data interface{}, w io.Writer) error
- func EnvWrite(data interface{}, w io.Writer) error
- func JSONRead(r io.Reader) (interface{}, error)
- func JSONWrite(data interface{}, w io.Writer) error
- func YAMLRead(r io.Reader) (interface{}, error)
- func YAMLWrite(data interface{}, w io.Writer) error
- type Config
- type Def
- type Format
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvSimpleRead ¶
func EnvSimpleWrite ¶
Types ¶
type Reader ¶
Reader loads a given file format into memory, into the same possible types as json.Unmarshal(data, anInterface). Supported types:
bool, for JSON booleans float64, for JSON numbers string, for JSON strings []interface{}, for JSON arrays map[string]interface{}, for JSON objects nil for JSON null
type Writer ¶
Writer writes out data (which is like the interface in `json.Unmarshal(data, anInterface)`), into a given format, via a Writer. Supported types:
bool, for JSON booleans float64, for JSON numbers string, for JSON strings []interface{}, for JSON arrays map[string]interface{}, for JSON objects nil for JSON null
Click to show internal directories.
Click to hide internal directories.