minijq

package
v0.0.0-...-4f38fe1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOutOfRange     = errors.New("minijq index out of range")
	ErrNotFound       = errors.New("minijq path not found")
	ErrNotList        = errors.New("minijq path not an array")
	ErrNotMap         = errors.New("minijq path not a map")
	ErrParse          = errors.New("minijq parse error")
	ErrNoSearchQuery  = errors.New("minijq no search query provided")
	ErrConvertMap     = errors.New("minijq map conversion error")
	ErrConvertList    = errors.New("minijq list conversion error")
	ErrConvertString  = errors.New("minijq string conversion error")
	ErrConvertFloat64 = errors.New("minijq float64 conversion error")
	ErrConvertBool    = errors.New("minijq bool conversion error")
)

Functions

This section is empty.

Types

type Jq

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

func FromBytes

func FromBytes(b []byte) (*Jq, error)

func FromInterface

func FromInterface(object interface{}) *Jq

func FromReader

func FromReader(buf *io.ReadCloser) (*Jq, error)

func FromString

func FromString(data string) (*Jq, error)

func (*Jq) AsBool

func (jq *Jq) AsBool() (bool, error)

func (*Jq) AsFloat64

func (jq *Jq) AsFloat64() (float64, error)

func (*Jq) AsInterface

func (jq *Jq) AsInterface() (interface{}, error)

func (*Jq) AsList

func (jq *Jq) AsList() ([]interface{}, error)

func (*Jq) AsListBool

func (jq *Jq) AsListBool() ([]bool, error)

func (*Jq) AsListFloat64

func (r *Jq) AsListFloat64() ([]float64, error)

func (*Jq) AsListString

func (jq *Jq) AsListString() ([]string, error)

func (*Jq) AsString

func (jq *Jq) AsString() (string, error)

func (*Jq) Search

func (jq *Jq) Search(path []string) *Jq

func (*Jq) SearchString

func (jq *Jq) SearchString(path string) *Jq

Jump to

Keyboard shortcuts

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