Versions in this module Expand all Collapse all v1 v1.2.0 Dec 11, 2018 Changes in this version type Properties + MapKeyProp *Properties + MapValProp *Properties + WktPointer bool type RequiredNotSetError + func (e *RequiredNotSetError) RequiredNotSet() bool v1.1.1 Jul 17, 2018 v1.1.0 Jul 15, 2018 Changes in this version + func RegisterMapType(x interface{}, name string) type Buffer + func (p *Buffer) SetDeterministic(deterministic bool) type Extension + func (this *Extension) Encode() error + type InternalMessageInfo struct + func (a *InternalMessageInfo) DiscardUnknown(m Message) + func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) + func (a *InternalMessageInfo) Merge(dst, src Message) + func (a *InternalMessageInfo) Size(msg Message) int + func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error + type Merger interface + Merge func(src Message) + type ProtoSizer interface + ProtoSize func() int v1.0.0 Feb 2, 2018 Changes in this version + const GoGoProtoPackageIsVersion1 + const GoGoProtoPackageIsVersion2 + const WireBytes + const WireEndGroup + const WireFixed32 + const WireFixed64 + const WireStartGroup + const WireVarint + var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") + var ErrMissingExtension = errors.New("proto: missing extension") + var ErrNil = errors.New("proto: Marshal called with nil") + var ErrTooLarge = errors.New("proto: message encodes to over 2 GB") + func AppendExtension(e Message, tag int32, buf []byte) + func Bool(v bool) *bool + func BytesToExtensionsMap(buf []byte) (map[int32]Extension, error) + func ClearAllExtensions(pb Message) + func ClearExtension(pb Message, extension *ExtensionDesc) + func CompactText(w io.Writer, pb Message) error + func CompactTextString(pb Message) string + func DecodeVarint(buf []byte) (x uint64, n int) + func DiscardUnknown(m Message) + func EncodeExtensionMap(m map[int32]Extension, data []byte) (n int, err error) + func EncodeInternalExtension(m extendableProto, data []byte) (n int, err error) + func EncodeVarint(x uint64) []byte + func EnumName(m map[int32]string, v int32) string + func EnumValueMap(enumType string) map[string]int32 + func Equal(a, b Message) bool + func FileDescriptor(filename string) []byte + func Float32(v float32) *float32 + func Float64(v float64) *float64 + func GetBoolExtension(pb Message, extension *ExtensionDesc, ifnotset bool) bool + func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) + func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) + func GetRawExtension(m map[int32]Extension, id int32) ([]byte, error) + func GetUnsafeExtension(pb Message, fieldNum int32) (interface{}, error) + func GetUnsafeExtensionsMap(extendable Message) map[int32]Extension + func HasExtension(pb Message, extension *ExtensionDesc) bool + func Int(v int) *int32 + func Int32(v int32) *int32 + func Int64(v int64) *int64 + func Marshal(pb Message) ([]byte, error) + func MarshalJSONEnum(m map[int32]string, value int32) ([]byte, error) + func MarshalMessageSet(exts interface{}) ([]byte, error) + func MarshalMessageSetJSON(exts interface{}) ([]byte, error) + func MarshalText(w io.Writer, pb Message) error + func MarshalTextString(pb Message) string + func Merge(dst, src Message) + func MessageName(x Message) string + func MessageType(name string) reflect.Type + func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) + func RegisterExtension(desc *ExtensionDesc) + func RegisterFile(filename string, fileDescriptor []byte) + func RegisterMessageSetType(m Message, fieldNum int32, name string) + func RegisterType(x Message, name string) + func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc + func SetDefaults(pb Message) + func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error + func SetRawExtension(base Message, id int32, b []byte) + func SetUnsafeExtension(pb Message, fieldNum int32, value interface{}) error + func Size(pb Message) (n int) + func SizeOfExtensionMap(m map[int32]Extension) (n int) + func SizeOfInternalExtension(m extendableProto) (n int) + func SizeVarint(x uint64) int + func Skip(data []byte) (n int, err error) + func String(v string) *string + func StringFromExtensionsBytes(ext []byte) string + func StringFromExtensionsMap(m map[int32]Extension) string + func StringFromInternalExtension(m extendableProto) string + func Uint32(v uint32) *uint32 + func Uint64(v uint64) *uint64 + func Unmarshal(buf []byte, pb Message) error + func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) + func UnmarshalMerge(buf []byte, pb Message) error + func UnmarshalMessageSet(buf []byte, exts interface{}) error + func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error + func UnmarshalText(s string, pb Message) error + type Buffer struct + func NewBuffer(e []byte) *Buffer + func (p *Buffer) Bytes() []byte + func (p *Buffer) DebugPrint(s string, b []byte) + func (p *Buffer) DecodeFixed32() (x uint64, err error) + func (p *Buffer) DecodeFixed64() (x uint64, err error) + func (p *Buffer) DecodeGroup(pb Message) error + func (p *Buffer) DecodeMessage(pb Message) error + func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) + func (p *Buffer) DecodeStringBytes() (s string, err error) + func (p *Buffer) DecodeVarint() (x uint64, err error) + func (p *Buffer) DecodeZigzag32() (x uint64, err error) + func (p *Buffer) DecodeZigzag64() (x uint64, err error) + func (p *Buffer) EncodeFixed32(x uint64) error + func (p *Buffer) EncodeFixed64(x uint64) error + func (p *Buffer) EncodeMessage(pb Message) error + func (p *Buffer) EncodeRawBytes(b []byte) error + func (p *Buffer) EncodeStringBytes(s string) error + func (p *Buffer) EncodeVarint(x uint64) error + func (p *Buffer) EncodeZigzag32(x uint64) error + func (p *Buffer) EncodeZigzag64(x uint64) error + func (p *Buffer) Marshal(pb Message) error + func (p *Buffer) Reset() + func (p *Buffer) SetBuf(s []byte) + func (p *Buffer) Unmarshal(pb Message) error + type Extension struct + func NewExtension(e []byte) Extension + func (this *Extension) Compare(that *Extension) int + func (this *Extension) Equal(that *Extension) bool + func (this Extension) GoString() string + type ExtensionDesc struct + ExtendedType Message + ExtensionType interface{} + Field int32 + Filename string + Name string + Tag string + func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) + type ExtensionRange struct + End int32 + Start int32 + type Marshaler interface + Marshal func() ([]byte, error) + type Message interface + ProtoMessage func() + Reset func() + String func() string + func Clone(pb Message) Message + type OneofProperties struct + Field int + Prop *Properties + Type reflect.Type + type ParseError struct + Line int + Message string + Offset int + func (p *ParseError) Error() string + type Properties struct + CastType string + CustomType string + Default string + Enum string + HasDefault bool + JSONName string + Name string + Optional bool + OrigName string + Packed bool + Repeated bool + Required bool + StdDuration bool + StdTime bool + Tag int + Wire string + WireType int + func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) + func (p *Properties) Parse(s string) + func (p *Properties) String() string + type RequiredNotSetError struct + func NewRequiredNotSetError(field string) *RequiredNotSetError + func (e *RequiredNotSetError) Error() string + type Sizer interface + Size func() int + type Stats struct + Chit uint64 + Cmiss uint64 + Decode uint64 + Dmalloc uint64 + Emalloc uint64 + Encode uint64 + Size uint64 + func GetStats() Stats + type StructProperties struct + OneofTypes map[string]*OneofProperties + Prop []*Properties + func GetProperties(t reflect.Type) *StructProperties + func (sp *StructProperties) Len() int + func (sp *StructProperties) Less(i, j int) bool + func (sp *StructProperties) Swap(i, j int) + type TextMarshaler struct + Compact bool + ExpandAny bool + func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error + func (tm *TextMarshaler) Text(pb Message) string + type Unmarshaler interface + Unmarshal func([]byte) error + type XXX_InternalExtensions struct + func NewUnsafeXXX_InternalExtensions(m map[int32]Extension) XXX_InternalExtensions