adapt

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProto

func FromProto(from proto.Message, to interface{}) error

FromProto converts a proto message to a struct using the JSON struct tags

func ToProto

func ToProto(from interface{}, to proto.Message) error

ToProto converts a struct to a proto message using the JSON struct tags

func UsingJSON

func UsingJSON(from, to interface{}) error

UsingJSON converts from and to using the JSON struct tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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