Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayItem ¶ added in v1.2.0
type ArrayItem struct {
Name string
Parameters []interface{}
}
ArrayItem - a configuration to render a json
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Serializer - the json serializer
func (*Serializer) Add ¶
func (j *Serializer) Add(name string, item interface{}, variablePath ...string) error
Add - adds a new JSON mapping
func (*Serializer) Serialize ¶
func (j *Serializer) Serialize(name string, parameters ...interface{}) (string, error)
Serialize - serializes a mapped JSON
func (*Serializer) SerializeArray ¶
func (j *Serializer) SerializeArray(items ...ArrayItem) (string, error)
SerializeArray - serializes an array of jsons
Click to show internal directories.
Click to hide internal directories.