protobuf

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: OSL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder added in v1.6.9

type Decoder map[protowire.Number]interface{}

func NewDecoder added in v1.6.9

func NewDecoder(buf []byte) Decoder

Convert byte slice to map

func (Decoder) Decode added in v1.7.0

func (d Decoder) Decode(val interface{}) error

Convert map to struct

type Encoder added in v1.6.9

type Encoder map[string]interface{}

func NewEncoder added in v1.6.9

func NewEncoder(val interface{}) (Encoder, error)

Convert struct to map

func (Encoder) Encode added in v1.7.0

func (e Encoder) Encode() ([]byte, error)

Convert map to byte slice

Jump to

Keyboard shortcuts

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