jq

package
v2.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(expression string) func(in any) (any, error)

func ExtractValue

func ExtractValue[T any](in any, expression string) (T, error)

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func Match

func Match(format string, args ...any) *Matcher

func (*Matcher) FailureMessage

func (matcher *Matcher) FailureMessage(actual interface{}) string

func (*Matcher) Match

func (matcher *Matcher) Match(actual interface{}) (bool, error)

func (*Matcher) NegatedFailureMessage

func (matcher *Matcher) NegatedFailureMessage(actual interface{}) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL