Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func (*Processor) GetValue ¶
GetValue gives back the value placed at a given path. The type of returned value can be string, int64, uint64, float64 and bool.
The path requires to start with "$" which represents the root element. Available operators are: $ : the root object/element . : child operator .. : recursive descent [num] : object/element of array by number
e.g. "$.foo.bar[0].baz"
func (*Processor) ReplaceString ¶
ReplaceString replaces the value placed at a given path with a given string value.
Click to show internal directories.
Click to hide internal directories.