Documentation
¶
Index ¶
- Variables
- type Jq
- func (jq *Jq) AsBool() (bool, error)
- func (jq *Jq) AsFloat64() (float64, error)
- func (jq *Jq) AsInterface() (interface{}, error)
- func (jq *Jq) AsList() ([]interface{}, error)
- func (jq *Jq) AsListBool() ([]bool, error)
- func (r *Jq) AsListFloat64() ([]float64, error)
- func (jq *Jq) AsListString() ([]string, error)
- func (jq *Jq) AsString() (string, error)
- func (jq *Jq) Search(path []string) *Jq
- func (jq *Jq) SearchString(path string) *Jq
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 FromInterface ¶
func FromInterface(object interface{}) *Jq
func FromReader ¶
func FromReader(buf *io.ReadCloser) (*Jq, error)
func FromString ¶
func (*Jq) AsInterface ¶
func (*Jq) AsListBool ¶
func (*Jq) AsListFloat64 ¶
func (*Jq) AsListString ¶
func (*Jq) SearchString ¶
Click to show internal directories.
Click to hide internal directories.