Documentation ¶
Index ¶
- type Goson
- func (g *Goson) Bool() bool
- func (g *Goson) Float() float64
- func (g *Goson) Get(key string) *Goson
- func (g *Goson) Index(index int) *Goson
- func (g *Goson) Int() int
- func (g *Goson) Len() int
- func (g *Goson) Map() map[string]interface{}
- func (g *Goson) Set(key string, value interface{}) *Goson
- func (g *Goson) Slice() []interface{}
- func (g *Goson) String() string
- func (g *Goson) Value() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Goson ¶
type Goson struct {
// contains filtered or unexported fields
}
Goson object
func (*Goson) Get ¶
Get returns a goson object from a key. If the value does not exist this will still return a goson object.
func (*Goson) Len ¶
Len will return len() on the underlying value. If the value does not have a length the return value will be 0.
func (*Goson) Set ¶
Set returns a goson object after change the value If the value does not exist this will still return a goson object.
func (*Goson) Slice ¶
func (g *Goson) Slice() []interface{}
Slice returns the underlying slice value.
Click to show internal directories.
Click to hide internal directories.