Documentation
¶
Overview ¶
author:nash date:2022/9/23 comment: a Go package to interact with arbitrary JSON
Index ¶
- type Json
- func (t *Json) AddIndex() *Json
- func (t *Json) Array() []interface{}
- func (t *Json) ArrayLen() (count int)
- func (t *Json) Bool() bool
- func (t *Json) Del(key string)
- func (t *Json) Encode() (s []byte, err error)
- func (t *Json) EncodePretty() (s []byte, err error)
- func (t *Json) Float64() float64
- func (t *Json) Get(key string) *Json
- func (t *Json) GetIndex(i int) *Json
- func (t *Json) Int() int
- func (t *Json) Int64() int64
- func (t *Json) Interface() interface{}
- func (t *Json) Kind() reflect.Kind
- func (t *Json) Load(txt string) (err error)
- func (t *Json) LoadString(src string) (err error)
- func (t *Json) Map() map[string]interface{}
- func (t *Json) Nil() bool
- func (t *Json) Set(key string) *Json
- func (t *Json) SetAny(i any)
- func (t *Json) String() string
- func (t *Json) Time() (res time.Time, err error)
- func (t *Json) Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
root 和 parent/key 是互斥的关系
func (*Json) EncodePretty ¶
func (*Json) LoadString ¶
Click to show internal directories.
Click to hide internal directories.