jsonselector

package
v0.0.0-...-55f45e6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSelectorFormat = errors.New("invalid selector format")
	ErrParentFieldNotAllowed = errors.New("parent field is not allowed")
	ErrFieldNotFound         = errors.New("field not found")
	ErrNotSupportedType      = errors.New("not supported type")
)

Errors

Functions

This section is empty.

Types

type Selector

type Selector interface {
	Find(data map[string]interface{}, selector string) (string, error)
}

Selector is an interface to find the field from the response body.

func NewSelector

func NewSelector() Selector

NewSelector creates a new selector instance to find the field from the response body.

Jump to

Keyboard shortcuts

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