Documentation ¶
Overview ¶
Package jsonutil provides JSON utility functions, complementing the more common ones in the encoding/json package.
Index ¶
- Constants
- type Document
- func (d Document) Child(path string) Document
- func (d Document) Children(path string) []Document
- func (d Document) Float64(path string) float64
- func (d Document) Int(path string) int
- func (d Document) RootUUIDs() []uuid.UUID
- func (d Document) String() string
- func (d Document) Time(path string) time.Time
- func (d Document) UUID(path string) uuid.UUID
- func (d Document) UUIDs(path string) []uuid.UUID
- type Template
Constants ¶
View Source
const NilDocument = Document("")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document string
Document represents a JSON document.
func ReadDocument ¶
ReadDocument reads a document from the given reader.
func (Document) Child ¶
Child returns a new Document representing the child element at the specified path.
type Template ¶
type Template json.RawMessage
Template is a JSON template.
func NewTemplate ¶
func NewTemplate(template json.RawMessage) Template
Click to show internal directories.
Click to hide internal directories.