proto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 13 Imported by: 295

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWireTypeUnknown = errors.New("unknown wire type")

Functions

func Bool

func Bool(v bool) *bool

Bool stores v in a new bool value and returns a pointer to it.

func Float32

func Float32(v float32) *float32

Float32 stores v in a new float32 value and returns a pointer to it.

func Float64

func Float64(v float64) *float64

Float64 stores v in a new float64 value and returns a pointer to it.

func Int32

func Int32(v int32) *int32

Int32 stores v in a new int32 value and returns a pointer to it.

func Int64

func Int64(v int64) *int64

Int64 stores v in a new int64 value and returns a pointer to it.

func Marshal

func Marshal(v interface{}) ([]byte, error)

func Size

func Size(v interface{}) int

func String

func String(v string) *string

String stores v in a new string value and returns a pointer to it.

func Uint32

func Uint32(v uint32) *uint32

Uint32 stores v in a new uint32 value and returns a pointer to it.

func Uint64

func Uint64(v uint64) *uint64

Uint64 stores v in a new uint64 value and returns a pointer to it.

func Unmarshal

func Unmarshal(b []byte, v interface{}) error

Types

type UnmarshalFieldError

type UnmarshalFieldError struct {
	FieldNumber int
	WireType    int
	Err         error
}

func (*UnmarshalFieldError) Error

func (e *UnmarshalFieldError) Error() string

func (*UnmarshalFieldError) Unwrap

func (e *UnmarshalFieldError) Unwrap() error

Directories

Path Synopsis
gen
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL