package module
Version: v0.0.0-...-571b5c5 Latest Latest

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

Go to latest
Published: Apr 27, 2015 License: MIT Imports: 7 Imported by: 0




This section is empty.


This section is empty.


func ParsePath

func ParsePath(path string) []string


type DynObj

type DynObj struct {
	Query Query

func NewJsonObj

func NewJsonObj(reader io.Reader) (*DynObj, error)

func NewJsonStringObj

func NewJsonStringObj(json string) (*DynObj, error)

func (*DynObj) AsAny

func (o *DynObj) AsAny(path string) interface{}

func (*DynObj) AsAnyD

func (o *DynObj) AsAnyD(path string, defVal interface{}) interface{}

func (*DynObj) AsBool

func (o *DynObj) AsBool(path string) bool

func (*DynObj) AsBoolD

func (o *DynObj) AsBoolD(path string, defVal bool) bool

func (*DynObj) AsInt

func (o *DynObj) AsInt(path string) int

func (*DynObj) AsIntD

func (o *DynObj) AsIntD(path string, defVal int) int

func (*DynObj) AsStr

func (o *DynObj) AsStr(path string) string

func (*DynObj) AsStrD

func (o *DynObj) AsStrD(path string, defVal string) string

type DynQuery

type DynQuery struct {
	Object interface{}

func NewJsonQuery

func NewJsonQuery(reader io.Reader) (*DynQuery, error)

func NewJsonStringQuery

func NewJsonStringQuery(json string) (*DynQuery, error)

func (*DynQuery) Query

func (q *DynQuery) Query(path []string, defVal interface{}) (interface{}, error)

type Query

type Query interface {
	Query(path []string, defVal interface{}) (interface{}, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL