Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Comparator struct {
// contains filtered or unexported fields
}
func NewComparator ¶
func NewComparator(parser Parser, opts ...Option) Comparator
func (Comparator) Equal ¶
func (c Comparator) Equal(source, target interface{}) bool
type DefaultParser ¶
type DefaultParser struct {
// contains filtered or unexported fields
}
func (DefaultParser) Get ¶
func (p DefaultParser) Get(path string) interface{}
func (DefaultParser) Json ¶
func (p DefaultParser) Json() string
func (DefaultParser) Parse ¶
func (p DefaultParser) Parse(obj interface{}) Parser
func (DefaultParser) Set ¶
func (p DefaultParser) Set(path string, value interface{})
type Option ¶
type Option func(*Comparator)
func ExcludeField ¶
func FiledPathMap ¶
func IncludeField ¶
Click to show internal directories.
Click to hide internal directories.