Versions in this module Expand all Collapse all v1 v1.5.2 Feb 20, 2019 v1.5.1 Sep 20, 2018 v1.5.0 Jan 30, 2018 v1.4.14 Jul 17, 2017 v1.4.13 May 9, 2017 v1.4.12 Mar 24, 2017 v1.4.11 Feb 24, 2017 v1.4.10 Jan 5, 2017 v1.4.9 Jan 3, 2017 Changes in this version + const AnyTag + const ArrayTag + const BoolTag + const BytesTag + const CurVersionTag + const CurrentVersion + const DefArrayTag + const DefEnumTag + const DefMapTag + const DefStructTag + const DefUnionTag + const EnumTag + const FirstUserTag + const Float32Tag + const Float64Tag + const Int16Tag + const Int32Tag + const Int64Tag + const Int8Tag + const MapTag + const MaxVersion + const MaxVersionTag + const MinVersionTag + const NullTag + const StringTag + const StructTag + const SymbolTag + const TimestampTag + const TinyStrDataMask + const TinyStrMaxlen + const TinyStrTag + const TinyStrTagMask + const UUIDTag + const UnionTag + const VersionDataMask + const VersionTag + const VersionTagMask + var Any = &Signature + var Bool = &Signature + var Bytes = &Signature + var Float32 = &Signature + var Float64 = &Signature + var Int16 = &Signature + var Int32 = &Signature + var Int64 = &Signature + var Int8 = &Signature + var Null = &Signature + var String = &Signature + var Symbol = &Signature + var Timestamp = &Signature + var UUID = &Signature + func DecodeUvarint(in io.Reader) (uint, error) + func DecodeVarint(in io.Reader) (int, error) + func EncodeUvarint(out io.Writer, n int) error + func EncodeVarint(out io.Writer, n int) error + func Equal(o1 interface{}, o2 interface{}) bool + func IsZero(v reflect.Value) bool + func Marshal(data interface{}) ([]byte, error) + func Pretty(o interface{}) string + func TagName(tag int) string + func Unmarshal(b []byte, data interface{}) error + func ValidMapKey(key interface{}) bool + func ValidMapKeyType(t reflect.Type) bool + type AlphaName string + type ArrayOfInt []int32 + type BigStruct struct + MyBool bool + MyByte int8 + MyDouble float64 + MyFloat float32 + MyFloat64Subtype Pi + MyInt int32 + MyInt32Subtype Year + MyIntArray []int32 + MyLong int64 + MyMap map[string]int32 + MyName string + MyShort int16 + MyStringArray []string + MyStringSubtype azAZ + MyTime rdl.Timestamp + MyUtfname string + MyUuid rdl.UUID + func NewBigStruct(init ...*BigStruct) *BigStruct + func (pTypeDef *BigStruct) Init() *BigStruct + func (pTypeDef *BigStruct) UnmarshalJSON(b []byte) error + func (pTypeDef *BigStruct) Validate() error + type BigTest struct + Stuff []*BigStruct + func NewBigTest(init ...*BigTest) *BigTest + func (pTypeDef *BigTest) Init() *BigTest + func (pTypeDef *BigTest) UnmarshalJSON(b []byte) error + func (pTypeDef *BigTest) Validate() error + type ComplicatedOptions string + type CompoundName string + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) BoolValue() bool + func (d *Decoder) CurrentCount() int + func (d *Decoder) Decode(data interface{}) error + func (d *Decoder) DecodeArray() ([]interface{}, error) + func (d *Decoder) DecodeArrayReflect(v reflect.Value) error + func (d *Decoder) DecodeMap() (map[string]interface{}, error) + func (d *Decoder) DecodeMapReflect(v reflect.Value) error + func (d *Decoder) DecodeReflect(v reflect.Value) error + func (d *Decoder) DecodeStruct() (map[string]interface{}, error) + func (d *Decoder) DecodeStructReflect(v reflect.Value) error + func (d *Decoder) Error() error + func (d *Decoder) Int16Value() int16 + func (d *Decoder) Int32Value() int32 + func (d *Decoder) Int64Value() int64 + func (d *Decoder) Int8Value() int8 + func (d *Decoder) ParseBool() bool + func (d *Decoder) ParseBytes() ([]byte, error) + func (d *Decoder) ParseFloat32() (float32, error) + func (d *Decoder) ParseFloat64() (float64, error) + func (d *Decoder) ParseInt() int + func (d *Decoder) ParseInt64() int64 + func (d *Decoder) ParseString() (string, error) + func (d *Decoder) ParseSymbol() (string, error) + func (d *Decoder) ParseTimestamp() (rdl.Timestamp, error) + func (d *Decoder) ParseUUID() (rdl.UUID, error) + func (d *Decoder) ParseUnsigned() uint + func (d *Decoder) ParseUnsigned64() uint64 + func (d *Decoder) ReadInt() int + func (d *Decoder) ReadInt32() int32 + func (d *Decoder) ReadSize() int + func (d *Decoder) ReadType() (*Signature, error) + func (d *Decoder) ReadUnsigned() int + type Drawing struct + Shapes []*Shape + func NewDrawing(init ...*Drawing) *Drawing + func (pTypeDef *Drawing) Init() *Drawing + func (pTypeDef *Drawing) UnmarshalJSON(b []byte) error + func (pTypeDef *Drawing) Validate() error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Bytes() []byte + func (enc *Encoder) Encode(data interface{}) error + func (enc *Encoder) EncodeArray(val []interface{}, useMarshallable bool) error + func (enc *Encoder) EncodeBool(val bool) error + func (enc *Encoder) EncodeBytes(val []byte) error + func (enc *Encoder) EncodeFloat32(val float32) error + func (enc *Encoder) EncodeFloat64(val float64) error + func (enc *Encoder) EncodeInt16(val int16) error + func (enc *Encoder) EncodeInt32(val int32) error + func (enc *Encoder) EncodeInt64(val int64) error + func (enc *Encoder) EncodeInt8(val int8) error + func (enc *Encoder) EncodeNull() error + func (enc *Encoder) EncodeReflect(data interface{}) error + func (enc *Encoder) EncodeString(val string) error + func (enc *Encoder) EncodeStruct(val rdl.Struct, useMarshallable bool) error + func (enc *Encoder) EncodeSymbol(val rdl.Symbol) error + func (enc *Encoder) EncodeTimestamp(val rdl.Timestamp) error + func (enc *Encoder) EncodeUUID(val rdl.UUID) error + func (enc *Encoder) Error() error + func (enc *Encoder) Flush() error + func (enc *Encoder) WriteBool(val bool) error + func (enc *Encoder) WriteBytes(b []byte) error + func (enc *Encoder) WriteFloat32(n float32) error + func (enc *Encoder) WriteFloat64(n float64) error + func (enc *Encoder) WriteInt(n int) error + func (enc *Encoder) WriteInt16(val int16) error + func (enc *Encoder) WriteInt32(val int32) error + func (enc *Encoder) WriteInt64(nn int64) error + func (enc *Encoder) WriteInt8(val int8) error + func (enc *Encoder) WriteSize(val int) error + func (enc *Encoder) WriteString(s string) error + func (enc *Encoder) WriteSymbol(name string) error + func (enc *Encoder) WriteTag(val int) error + func (enc *Encoder) WriteTimestamp(val rdl.Timestamp) error + func (enc *Encoder) WriteType(sig *Signature) error + func (enc *Encoder) WriteUUID(u rdl.UUID) error + func (enc *Encoder) WriteUnsigned(val int) error + type FieldSignature struct + Name string + Type *Signature + func Field(n string, t *Signature, opt bool) *FieldSignature + type IntOOBTest struct + Theyear Year + func NewIntOOBTest(init ...*IntOOBTest) *IntOOBTest + func (pTypeDef *IntOOBTest) UnmarshalJSON(b []byte) error + func (pTypeDef *IntOOBTest) Validate() error + type LargeInt int64 + type Latitude float64 + type LongNumber int64 + type MapArrayTest struct + Locations map[string]ArrayOfInt + func NewMapArrayTest(init ...*MapArrayTest) *MapArrayTest + func (pTypeDef *MapArrayTest) Init() *MapArrayTest + func (pTypeDef *MapArrayTest) UnmarshalJSON(b []byte) error + func (pTypeDef *MapArrayTest) Validate() error + type MapTest struct + Locations map[string]int32 + func NewMapTest(init ...*MapTest) *MapTest + func (pTypeDef *MapTest) Init() *MapTest + func (pTypeDef *MapTest) UnmarshalJSON(b []byte) error + func (pTypeDef *MapTest) Validate() error + type NegativeNumberTest struct + Mylatitude Latitude + func NewNegativeNumberTest(init ...*NegativeNumberTest) *NegativeNumberTest + func (pTypeDef *NegativeNumberTest) UnmarshalJSON(b []byte) error + func (pTypeDef *NegativeNumberTest) Validate() error + type Options int + const ONE + const THREE + const TWO + func NewOptions(init ...interface{}) Options + func (e *Options) UnmarshalJSON(b []byte) error + func (e Options) MarshalJSON() ([]byte, error) + func (e Options) String() string + type Pi float64 + type Point struct + X int32 + Y int32 + func NewPoint(init ...*Point) *Point + func (pTypeDef *Point) UnmarshalJSON(b []byte) error + func (pTypeDef *Point) Validate() error + type Polyline struct + Points []*Point + func NewPolyline(init ...*Polyline) *Polyline + func (line Polyline) String() string + func (pTypeDef *Polyline) Init() *Polyline + func (pTypeDef *Polyline) UnmarshalJSON(b []byte) error + func (pTypeDef *Polyline) Validate() error + type Rect struct + P1 *Point + P2 *Point + func NewRect(init ...*Rect) *Rect + func (pTypeDef *Rect) Init() *Rect + func (pTypeDef *Rect) UnmarshalJSON(b []byte) error + func (pTypeDef *Rect) Validate() error + type RegularInt int32 + type Shape struct + Polyline *Polyline + Rect *Rect + Variant ShapeVariantTag + func (u *Shape) UnmarshalJSON(b []byte) error + func (u Shape) MarshalJSON() ([]byte, error) + func (u Shape) String() string + type ShapeVariantTag int + const ShapeVariantPolyline + const ShapeVariantRect + type Signature struct + Fields []*FieldSignature + Items *Signature + Keys *Signature + Symbols []string + Tag int + Variants []*Signature + func Array(items *Signature) *Signature + func Enum(symbols ...string) *Signature + func Map(keys *Signature, items *Signature) *Signature + func Struct(fields ...*FieldSignature) *Signature + func TypeSignature(val interface{}) *Signature + func Union(variants ...*Signature) *Signature + func (sig *Signature) String() string + type SimpleName string + type SmallInt int16 + type StringTest struct + Enc YEncoded + Name SimpleName + Names []SimpleName + Parent CompoundName + func NewStringTest(init ...*StringTest) *StringTest + func (pTypeDef *StringTest) UnmarshalJSON(b []byte) error + func (pTypeDef *StringTest) Validate() error + type Symbolic interface + Symbol func() string + type TBinMarshallable interface + MarshalTBin func(*Encoder) error + type TBinUnmarshallable interface + UnmarshalTBin func(dec *Decoder) error + type TimestampTest struct + Mytime rdl.Timestamp + func NewTimestampTest(init ...*TimestampTest) *TimestampTest + func (pTypeDef *TimestampTest) UnmarshalJSON(b []byte) error + func (pTypeDef *TimestampTest) Validate() error + type TinyInt int8 + type UUIDTest struct + Myid rdl.UUID + func NewUUIDTest(init ...*UUIDTest) *UUIDTest + func (pTypeDef *UUIDTest) UnmarshalJSON(b []byte) error + func (pTypeDef *UUIDTest) Validate() error + type YEncoded string + type Year int32