Documentation ¶
Index ¶
- func GenIntoFile(t reflect.Type, pack, file string) error
- func GenWrappers(t reflect.Type, pack string) string
- func ReleaseJsonWriter(jw *JsonWriter)
- type Decoder
- type JsonMarshal
- type JsonWriter
- func (jw *JsonWriter) Bytes() []byte
- func (jw *JsonWriter) String() string
- func (jw *JsonWriter) WriteArrayLeft(key string)
- func (jw *JsonWriter) WriteArrayRight()
- func (jw *JsonWriter) WriteBool(key string, val bool)
- func (jw *JsonWriter) WriteByte(b byte)
- func (jw *JsonWriter) WriteFloat(key string, val float64)
- func (jw *JsonWriter) WriteInt(key string, val int)
- func (jw *JsonWriter) WriteKey(key string)
- func (jw *JsonWriter) WriteObjectLeft(key string)
- func (jw *JsonWriter) WriteObjectRight()
- func (jw *JsonWriter) WriteObjectStart()
- func (jw *JsonWriter) WriteSep()
- func (jw *JsonWriter) WriteString(key string, val string)
- func (jw *JsonWriter) WriteVal(val interface{})
- type Struct
- type StructField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseJsonWriter ¶
func ReleaseJsonWriter(jw *JsonWriter)
Types ¶
type JsonMarshal ¶
type JsonMarshal interface {
Json(jw *JsonWriter)
}
type JsonWriter ¶
type JsonWriter struct {
// contains filtered or unexported fields
}
func AcquireJsonWriter ¶
func AcquireJsonWriter() *JsonWriter
func NewJsonWriter ¶
func NewJsonWriter() *JsonWriter
func (*JsonWriter) Bytes ¶
func (jw *JsonWriter) Bytes() []byte
func (*JsonWriter) String ¶
func (jw *JsonWriter) String() string
func (*JsonWriter) WriteArrayLeft ¶
func (jw *JsonWriter) WriteArrayLeft(key string)
func (*JsonWriter) WriteArrayRight ¶
func (jw *JsonWriter) WriteArrayRight()
func (*JsonWriter) WriteBool ¶
func (jw *JsonWriter) WriteBool(key string, val bool)
func (*JsonWriter) WriteByte ¶
func (jw *JsonWriter) WriteByte(b byte)
func (*JsonWriter) WriteFloat ¶
func (jw *JsonWriter) WriteFloat(key string, val float64)
func (*JsonWriter) WriteInt ¶
func (jw *JsonWriter) WriteInt(key string, val int)
func (*JsonWriter) WriteKey ¶
func (jw *JsonWriter) WriteKey(key string)
func (*JsonWriter) WriteObjectLeft ¶
func (jw *JsonWriter) WriteObjectLeft(key string)
func (*JsonWriter) WriteObjectRight ¶
func (jw *JsonWriter) WriteObjectRight()
func (*JsonWriter) WriteObjectStart ¶
func (jw *JsonWriter) WriteObjectStart()
func (*JsonWriter) WriteSep ¶
func (jw *JsonWriter) WriteSep()
func (*JsonWriter) WriteString ¶
func (jw *JsonWriter) WriteString(key string, val string)
func (*JsonWriter) WriteVal ¶
func (jw *JsonWriter) WriteVal(val interface{})
type StructField ¶
Click to show internal directories.
Click to hide internal directories.