encoding

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoToValue

func GoToValue(raw interface{}) (*proto.Value, error)

GoToValue converts the Go value to a protobuf Object.

The Go value must contain only primitives, collections of primitives, and structures. It must not contain any other type of value or an error will be returned.

The primitive types byte and rune are aliases to integer types (as defined by the Go spec) and are treated as integers in conversion.

func ValueToGo

func ValueToGo(v *proto.Value, t reflect.Type) (interface{}, error)

ValueToGo converts a protobuf Value structure to a native Go value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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