pathing

package
v0.0.0-...-7e89744 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(val interface{}) ([]byte, error)

func MustMarshal

func MustMarshal(val interface{}) []byte

func Unmarshal

func Unmarshal(data []byte) (interface{}, error)

func UnmarshalInto

func UnmarshalInto(dst interface{}, src []byte) error

Types

type Object

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

func NewObject

func NewObject(value interface{}) *Object

func (*Object) Append

func (o *Object) Append() *Object

func (*Object) Bool

func (o *Object) Bool() bool

func (*Object) Bytes

func (o *Object) Bytes() []byte

func (*Object) Class

func (o *Object) Class() *Object

func (*Object) Delete

func (o *Object) Delete() error

func (*Object) Each

func (o *Object) Each(callback func(interface{}, *Object) error) error

func (*Object) EachSimple

func (o *Object) EachSimple(callback func(*Object, *Object) error) error

func (*Object) Get

func (o *Object) Get(key interface{}) *Object

func (*Object) Int

func (o *Object) Int() int

func (*Object) Int64

func (o *Object) Int64() int64

func (*Object) Len

func (o *Object) Len() int

func (*Object) Set

func (o *Object) Set(value interface{}) error

func (*Object) String

func (o *Object) String() string

func (*Object) Type

func (o *Object) Type() Type

func (*Object) Uint64

func (o *Object) Uint64() uint64

func (*Object) Value

func (o *Object) Value() interface{}

type Type

type Type int
const (
	Type_Map Type = iota
	Type_Array
	Type_String
	Type_Bytes
	Type_Uint64
	Type_Int64
	Type_Bool
	Type_Nil
	Type_Unknown
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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