Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONReader ¶
type JSONReader struct {
// contains filtered or unexported fields
}
A JSONReader is a utility object to read JSON files and unmarshal it to Go structs.
func NewJSONReader ¶
func NewJSONReader() *JSONReader
NewJSONReader returns the pointer to JSONReader.
func (JSONReader) Copy ¶
func (j JSONReader) Copy() *JSONReader
Copy returns a deep copied JSONReader.
func (JSONReader) Paths ¶
func (j JSONReader) Paths() []string
Paths returns a path slice accumulated by Read() calls. Returned pathes is the string after the basename of prefixes. Resulting slices has no duplication even if multiple Read() calls with the same path.
Click to show internal directories.
Click to hide internal directories.