Documentation ¶
Index ¶
- func Add(pointer string, value string, json []byte) ([]byte, error)
- func CreatePatch(operation string, from string, path string) (jsonpatch.Patch, error)
- func CreatePathPatch(op string, path string) (jsonpatch.Patch, error)
- func CreateValuePatch(op string, path string, value string) (jsonpatch.Patch, error)
- func Move(pointer string, toPtr string, json []byte) ([]byte, error)
- func Remove(pointer string, json []byte) ([]byte, error)
- func RemoveByValue(pointer string, value string, json []byte) ([]byte, error)
- func Rename(pointer string, value string, json []byte) ([]byte, error)
- func Replace(pointer string, value string, json []byte) ([]byte, error)
- func Value(pointer string, jsonText string) (interface{}, reflect.Kind, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
func CreatePathPatch ¶
func CreateValuePatch ¶
func RemoveByValue ¶
RemoveByValue removes a given value if present at the pointer in the given json. At this point this method supports removing a number from a slice.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.