Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match helps to make assertions on JSON strings when some values are not known in advance. For example, when we do the assertion on JSON serialized models, we can't predict the values of fields like IDs or timestamps. In such cases, we can use a "template" with placeholders for these values. See matcher_test.go for examples
Types ¶
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
Getter allows to get values from the JSON data.
func NewGetterWithJSON ¶
NewGetterWithJSON creates a new Getter based on JSON string
Click to show internal directories.
Click to hide internal directories.