Documentation
¶
Index ¶
- func Extract(obj any, paths []string, delimiter string) (any, error)
- func Fingerprint(obj any, paths []string, delimiter string) (any, string, error)
- func GetPropertyByPath(obj any, path string, delimiter string) (any, error)
- func IsSubset(subset any, superset any, matchValues bool) bool
- func ObjectToString(obj any) string
- func Pivot(obj any) [][]string
- func PivotAndJoinPaths(obj any, delimiter string) []string
- func PivotToMap(obj any, delimiter string) map[string]any
- func SetPropertyByPath(obj map[string]any, path string, delimiter string, newProperty any, ...)
- type Field
- type Matcher
- type Stringable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPropertyByPath ¶
func ObjectToString ¶
func PivotAndJoinPaths ¶
Types ¶
type Field ¶
type Field struct {
Name string
Value any
ReflectedValue reflect.Value
ReflectedType reflect.Type
Children []*Field
}
func GetAllFields ¶
type Stringable ¶
type Stringable interface {
String() string
}
Click to show internal directories.
Click to hide internal directories.