Documentation ¶
Index ¶
- func Clean(v interface{}, w io.Writer) (err error)
- func Format(in io.Reader, out io.Writer) error
- func Get(v interface{}, url string) (err error)
- func OExecute(t JsonTemplate) error
- func Parse(out, in interface{}) error
- func Read(v interface{}, path string) (err error)
- func ReadGz(v interface{}, file string) (err error)
- func ReadGzIo(v interface{}, r io.Reader) (err error)
- func Write(v interface{}, path string) (err error)
- func WriteGz(v interface{}, file string) (err error)
- func WriteGzIo(v interface{}, w io.Writer) (err error)
- func WritePretty(v interface{}, w io.Writer) (err error)
- type JsonTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OExecute ¶
func OExecute(t JsonTemplate) error
func Parse ¶
func Parse(out, in interface{}) error
Encodes a struct into json and then Parses it as a go/template. It then decodes it back into a complete struct.
func WritePretty ¶
PrintPretty marshal's an interface and ouputs formatted json to writer.
Types ¶
type JsonTemplate ¶
type JsonTemplate interface {
SetTemplate(interface{})
}
Click to show internal directories.
Click to hide internal directories.