Documentation ¶
Index ¶
- Variables
- type ArrayBuilder
- type Buffer
- func (buf *Buffer) AppendByte(b byte)
- func (buf *Buffer) AppendBytes(p []byte)
- func (buf *Buffer) AppendEscapedRune(r rune)
- func (buf *Buffer) AppendEscapedString(s string)
- func (buf *Buffer) AppendFloat32(n float32)
- func (buf *Buffer) AppendFloat64(n float64)
- func (buf *Buffer) AppendInt(n int)
- func (buf *Buffer) AppendInt16(n int16)
- func (buf *Buffer) AppendInt32(n int32)
- func (buf *Buffer) AppendInt64(n int64)
- func (buf *Buffer) AppendString(s string)
- func (buf *Buffer) AppendUint(n uint)
- func (buf *Buffer) AppendUint16(n uint16)
- func (buf *Buffer) AppendUint32(n uint32)
- func (buf *Buffer) AppendUint64(n uint64)
- func (buf *Buffer) AppendUnescapedRune(r rune)
- func (buf *Buffer) AppendUnescapedString(s string)
- type ErrProduceFailed
- type ObjectBuilder
- type Producer
- type Value
- func Array(producer ...Value) Value
- func BindBool(ref *bool) Value
- func BindFloat32(ref *float32) Value
- func BindFloat64(ref *float64) Value
- func BindInt(ref *int) Value
- func BindInt16(ref *int16) Value
- func BindInt32(ref *int32) Value
- func BindInt64(ref *int64) Value
- func BindNullableBool(ref **bool) Value
- func BindNullableFloat32(ref **float32) Value
- func BindNullableFloat64(ref **float64) Value
- func BindNullableInt(ref **int) Value
- func BindNullableInt16(ref **int16) Value
- func BindNullableInt32(ref **int32) Value
- func BindNullableInt64(ref **int64) Value
- func BindNullableRune(ref **rune) Value
- func BindNullableRuneNoEscape(ref **rune) Value
- func BindNullableStr(ref **string) Value
- func BindNullableStrNoEscape(ref **string) Value
- func BindNullableUint(ref **uint) Value
- func BindNullableUint16(ref **uint16) Value
- func BindNullableUint32(ref **uint32) Value
- func BindNullableUint64(ref **uint64) Value
- func BindRune(ref *rune) Value
- func BindRuneNoEscape(ref *rune) Value
- func BindStr(ref *string) Value
- func BindStrNoEscape(ref *string) Value
- func BindUint(ref *uint) Value
- func BindUint16(ref *uint16) Value
- func BindUint32(ref *uint32) Value
- func BindUint64(ref *uint64) Value
- func Bool(value bool) Value
- func Float32(value float32) Value
- func Float64(value float64) Value
- func Int(value int) Value
- func Int16(value int16) Value
- func Int32(value int32) Value
- func Int64(value int64) Value
- func Member(name string, value Value) Value
- func NullableBool(ref *bool) Value
- func NullableFloat32(ref *float32) Value
- func NullableFloat64(ref *float64) Value
- func NullableInt(ref *int) Value
- func NullableInt16(ref *int16) Value
- func NullableInt32(ref *int32) Value
- func NullableInt64(ref *int64) Value
- func NullableRune(ref *rune) Value
- func NullableRuneNoEscape(ref *rune) Value
- func NullableStr(ref *string) Value
- func NullableStrNoEscape(ref *string) Value
- func NullableUint(ref *uint) Value
- func NullableUint16(ref *uint16) Value
- func NullableUint32(ref *uint32) Value
- func NullableUint64(ref *uint64) Value
- func Object(producer ...Value) Value
- func RawBytes(value []byte) Value
- func Rune(value rune) Value
- func RuneNoEscape(value rune) Value
- func Str(value string) Value
- func StrNoEscape(value string) Value
- func Uint(value uint) Value
- func Uint16(value uint16) Value
- func Uint32(value uint32) Value
- func Uint64(value uint64) Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilReference = errNilReference{} ErrEmptySlice = errEmptySlice{} )
View Source
var (
EmptyArray = produceEmptyArray
)
View Source
var (
EmptyObject = produceEmptyObject
)
Functions ¶
This section is empty.
Types ¶
type ArrayBuilder ¶
type ArrayBuilder struct {
// contains filtered or unexported fields
}
func (ArrayBuilder) Build ¶
func (ab ArrayBuilder) Build() Value
func (ArrayBuilder) IsEmpty ¶
func (ab ArrayBuilder) IsEmpty() bool
func (ArrayBuilder) Push ¶
func (ab ArrayBuilder) Push(value Value) ArrayBuilder
type Buffer ¶
func (*Buffer) AppendByte ¶
func (*Buffer) AppendBytes ¶
func (*Buffer) AppendEscapedRune ¶
func (*Buffer) AppendEscapedString ¶
func (*Buffer) AppendFloat32 ¶
func (*Buffer) AppendFloat64 ¶
func (*Buffer) AppendInt16 ¶
func (*Buffer) AppendInt32 ¶
func (*Buffer) AppendInt64 ¶
func (*Buffer) AppendString ¶
func (*Buffer) AppendUint ¶
func (*Buffer) AppendUint16 ¶
func (*Buffer) AppendUint32 ¶
func (*Buffer) AppendUint64 ¶
func (*Buffer) AppendUnescapedRune ¶
func (*Buffer) AppendUnescapedString ¶
type ErrProduceFailed ¶
func ArrayProduceFailed ¶
func ArrayProduceFailed(reason error) ErrProduceFailed
func MemberProduceFailed ¶
func MemberProduceFailed(reason error) ErrProduceFailed
func ObjectProduceFailed ¶
func ObjectProduceFailed(reason error) ErrProduceFailed
func ValueProduceFailed ¶
func ValueProduceFailed(reason error) ErrProduceFailed
func (ErrProduceFailed) Error ¶
func (e ErrProduceFailed) Error() (s string)
type ObjectBuilder ¶
type ObjectBuilder struct {
// contains filtered or unexported fields
}
func (ObjectBuilder) Build ¶
func (ob ObjectBuilder) Build() Value
func (ObjectBuilder) IsEmpty ¶
func (ob ObjectBuilder) IsEmpty() bool
func (ObjectBuilder) Member ¶
func (ob ObjectBuilder) Member(name string, value Value) ObjectBuilder
type Value ¶
var (
EmptyStr Value = produceEmptyString
)
var (
Null Value = produceNull
)
var (
Zero Value = produceNumberZero
)
func BindFloat32 ¶
func BindFloat64 ¶
func BindNullableBool ¶
func BindNullableFloat32 ¶
func BindNullableFloat64 ¶
func BindNullableInt ¶
func BindNullableInt16 ¶
func BindNullableInt32 ¶
func BindNullableInt64 ¶
func BindNullableRune ¶
func BindNullableStr ¶
func BindNullableStrNoEscape ¶
func BindNullableUint ¶
func BindNullableUint16 ¶
func BindNullableUint32 ¶
func BindNullableUint64 ¶
func BindRuneNoEscape ¶
func BindStrNoEscape ¶
func BindUint16 ¶
func BindUint32 ¶
func BindUint64 ¶
func NullableBool ¶
func NullableFloat32 ¶
func NullableFloat64 ¶
func NullableInt ¶
func NullableInt16 ¶
func NullableInt32 ¶
func NullableInt64 ¶
func NullableRune ¶
func NullableRuneNoEscape ¶
func NullableStr ¶
func NullableStrNoEscape ¶
func NullableUint ¶
func NullableUint16 ¶
func NullableUint32 ¶
func NullableUint64 ¶
func RuneNoEscape ¶
func StrNoEscape ¶
Source Files ¶
- array.go
- array_builder.go
- bool.go
- buffer.go
- constants.go
- errors.go
- null.go
- number.go
- number_float32.go
- number_float64.go
- number_int.go
- number_int16.go
- number_int32.go
- number_int64.go
- number_uint.go
- number_uint16.go
- number_uint32.go
- number_uint64.go
- object.go
- object_builder.go
- producer.go
- raw.go
- rune.go
- rune_noescape.go
- string.go
- string_noescape.go
Click to show internal directories.
Click to hide internal directories.