Documentation ¶
Index ¶
- Variables
- func Join[T any](enc *JsonBuffer, key string, data []T, quote bool)
- func Kind(raw string) func(string) string
- func Noop(string) string
- type ByteBuffer
- type Extractor
- type FastJSON
- func (f *FastJSON) AssertFloat64() (float64, bool)
- func (f *FastJSON) AssertFunction() (*lua.LFunction, bool)
- func (f *FastJSON) AssertString() (string, bool)
- func (f *FastJSON) Bool(L *lua.LState) int
- func (f *FastJSON) Hijack(*lua.CallFrameFSM) bool
- func (f *FastJSON) Index(L *lua.LState, key string) lua.LValue
- func (f *FastJSON) Int(L *lua.LState) int
- func (f *FastJSON) Meta(L *lua.LState, key lua.LValue) lua.LValue
- func (f *FastJSON) NewIndex(L *lua.LState, key string, val lua.LValue)
- func (f *FastJSON) Parse(body string) error
- func (f *FastJSON) ParseBytes(body []byte) error
- func (f *FastJSON) Str(L *lua.LState) int
- func (f *FastJSON) String() string
- func (f *FastJSON) Type() lua.LValueType
- type JsonBuffer
- func (j *JsonBuffer) Append(val []byte)
- func (j *JsonBuffer) Arr(name string)
- func (j *JsonBuffer) Bool(v bool)
- func (j *JsonBuffer) Buffer() *ByteBuffer
- func (j *JsonBuffer) Bytes() []byte
- func (j *JsonBuffer) Char(ch byte)
- func (j *JsonBuffer) Copy(val []byte)
- func (j *JsonBuffer) End(val string)
- func (j *JsonBuffer) False(key string)
- func (j *JsonBuffer) Insert(v []byte)
- func (j *JsonBuffer) Int(n int)
- func (j *JsonBuffer) Join(key string, v []string)
- func (j *JsonBuffer) Join2(key string, v []interface{})
- func (j *JsonBuffer) KB(key string, b bool)
- func (j *JsonBuffer) KF64(key string, v float64)
- func (j *JsonBuffer) KI(key string, n int)
- func (j *JsonBuffer) KL(key string, n int64)
- func (j *JsonBuffer) KT(key string, t time.Time)
- func (j *JsonBuffer) KUL(key string, n uint64)
- func (j *JsonBuffer) KV(key string, s interface{})
- func (j *JsonBuffer) Key(key string)
- func (j *JsonBuffer) Long(n int64)
- func (j *JsonBuffer) Marshal(key string, v interface{}) error
- func (j *JsonBuffer) NoKeyJoin(v []string)
- func (j *JsonBuffer) NoKeyJoin2(v []interface{})
- func (j *JsonBuffer) Raw(key string, val []byte)
- func (j *JsonBuffer) Tab(name string)
- func (j *JsonBuffer) ToBytes(key string, v []byte)
- func (j *JsonBuffer) ToStr(key string, v string)
- func (j *JsonBuffer) True(key string)
- func (j *JsonBuffer) ULong(n uint64)
- func (j *JsonBuffer) V(v interface{})
- func (j *JsonBuffer) V1(v string)
- func (j *JsonBuffer) V2(v string)
- func (j *JsonBuffer) Val(v string)
- func (j *JsonBuffer) Write(val []byte)
- func (j *JsonBuffer) WriteByte(ch byte)
- func (j *JsonBuffer) WriteString(val string)
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyA = []byte("[]")
View Source
var False = []byte("false")
View Source
var True = []byte("true")
Functions ¶
Types ¶
type ByteBuffer ¶
type ByteBuffer = bytebufferpool.ByteBuffer
type FastJSON ¶
type FastJSON struct {
// contains filtered or unexported fields
}
func (*FastJSON) AssertFloat64 ¶
func (*FastJSON) AssertString ¶
func (*FastJSON) ParseBytes ¶
func (*FastJSON) Type ¶
func (f *FastJSON) Type() lua.LValueType
type JsonBuffer ¶
type JsonBuffer struct {
// contains filtered or unexported fields
}
func NewJson ¶
func NewJson() *JsonBuffer
func (*JsonBuffer) Append ¶
func (j *JsonBuffer) Append(val []byte)
func (*JsonBuffer) Arr ¶
func (j *JsonBuffer) Arr(name string)
func (*JsonBuffer) Bool ¶
func (j *JsonBuffer) Bool(v bool)
func (*JsonBuffer) Buffer ¶
func (j *JsonBuffer) Buffer() *ByteBuffer
func (*JsonBuffer) Bytes ¶
func (j *JsonBuffer) Bytes() []byte
func (*JsonBuffer) Char ¶
func (j *JsonBuffer) Char(ch byte)
func (*JsonBuffer) Copy ¶
func (j *JsonBuffer) Copy(val []byte)
func (*JsonBuffer) End ¶
func (j *JsonBuffer) End(val string)
func (*JsonBuffer) False ¶
func (j *JsonBuffer) False(key string)
func (*JsonBuffer) Insert ¶
func (j *JsonBuffer) Insert(v []byte)
func (*JsonBuffer) Int ¶
func (j *JsonBuffer) Int(n int)
func (*JsonBuffer) Join ¶
func (j *JsonBuffer) Join(key string, v []string)
func (*JsonBuffer) Join2 ¶
func (j *JsonBuffer) Join2(key string, v []interface{})
func (*JsonBuffer) KB ¶
func (j *JsonBuffer) KB(key string, b bool)
func (*JsonBuffer) KF64 ¶
func (j *JsonBuffer) KF64(key string, v float64)
func (*JsonBuffer) KI ¶
func (j *JsonBuffer) KI(key string, n int)
func (*JsonBuffer) KL ¶
func (j *JsonBuffer) KL(key string, n int64)
func (*JsonBuffer) KUL ¶
func (j *JsonBuffer) KUL(key string, n uint64)
func (*JsonBuffer) KV ¶
func (j *JsonBuffer) KV(key string, s interface{})
func (*JsonBuffer) Key ¶
func (j *JsonBuffer) Key(key string)
func (*JsonBuffer) Long ¶
func (j *JsonBuffer) Long(n int64)
func (*JsonBuffer) Marshal ¶
func (j *JsonBuffer) Marshal(key string, v interface{}) error
func (*JsonBuffer) NoKeyJoin ¶
func (j *JsonBuffer) NoKeyJoin(v []string)
func (*JsonBuffer) NoKeyJoin2 ¶
func (j *JsonBuffer) NoKeyJoin2(v []interface{})
func (*JsonBuffer) Raw ¶
func (j *JsonBuffer) Raw(key string, val []byte)
func (*JsonBuffer) Tab ¶
func (j *JsonBuffer) Tab(name string)
func (*JsonBuffer) ToBytes ¶
func (j *JsonBuffer) ToBytes(key string, v []byte)
func (*JsonBuffer) ToStr ¶
func (j *JsonBuffer) ToStr(key string, v string)
func (*JsonBuffer) True ¶
func (j *JsonBuffer) True(key string)
func (*JsonBuffer) ULong ¶
func (j *JsonBuffer) ULong(n uint64)
func (*JsonBuffer) V ¶
func (j *JsonBuffer) V(v interface{})
func (*JsonBuffer) V1 ¶
func (j *JsonBuffer) V1(v string)
func (*JsonBuffer) V2 ¶
func (j *JsonBuffer) V2(v string)
func (*JsonBuffer) Val ¶
func (j *JsonBuffer) Val(v string)
func (*JsonBuffer) Write ¶
func (j *JsonBuffer) Write(val []byte)
func (*JsonBuffer) WriteByte ¶
func (j *JsonBuffer) WriteByte(ch byte)
func (*JsonBuffer) WriteString ¶
func (j *JsonBuffer) WriteString(val string)
Click to show internal directories.
Click to hide internal directories.