Documentation
¶
Overview ¶
Simple Implementation of JSON Path for state machine
Index ¶
- Variables
- func ParsePathString(path_string string) ([]string, error)
- type Path
- func (path *Path) Get(input interface{}) (value interface{}, err error)
- func (path *Path) GetBool(input interface{}) (*bool, error)
- func (path *Path) GetMap(input interface{}) (output map[string]interface{}, err error)
- func (path *Path) GetNumber(input interface{}) (*float64, error)
- func (path *Path) GetString(input interface{}) (*string, error)
- func (path *Path) GetTime(input interface{}) (*time.Time, error)
- func (path *Path) MarshalJSON() ([]byte, error)
- func (path *Path) Set(input interface{}, value interface{}) (output map[string]interface{}, err error)
- func (path *Path) String() string
- func (path *Path) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NOT_FOUND_ERROR = errors.New("Not Found")
Functions ¶
func ParsePathString ¶
ParsePathString parses a path string
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (*Path) MarshalJSON ¶
MarshalJSON converts path to json string
func (*Path) Set ¶
func (path *Path) Set(input interface{}, value interface{}) (output map[string]interface{}, err error)
Set sets a Value in a map with Path
func (*Path) UnmarshalJSON ¶
UnmarshalJSON makes a path out of a json string
Click to show internal directories.
Click to hide internal directories.