Documentation ¶
Index ¶
- Variables
- func FieldName(path string) string
- func Normalize(x interface{}) (interface{}, error)
- func Walk(structure interface{}, callback Walker, opts ...Option) error
- func WalkWithValues(structure interface{}, callback ValueWalker, opts ...Option) (interface{}, error)
- type Option
- type Type
- type ValueWalker
- type Walker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Normalize ¶
func Normalize(x interface{}) (interface{}, error)
Normalize JSON object so that it is (shallowly) one of the basic JSON types.
func WalkWithValues ¶
func WalkWithValues(structure interface{}, callback ValueWalker, opts ...Option) (interface{}, error)
Types ¶
type Option ¶
type Option func(*options) error
func WithRootPath ¶
func WithoutArrayIndices ¶
func WithoutArrayIndices() Option
type ValueWalker ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.