gwconv

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProtoMessage

func FromProtoMessage[T proto.Message](_ context.Context, message T, result interface{}) error

func ToProtoMessage

func ToProtoMessage[T proto.Message](ctx context.Context, ptr interface{}, allowAllNilFields bool) (result T, err error)

Types

type IMarshallable

type IMarshallable[T proto.Message] interface {
	MarshalMessage() (T, error)
}

type IUnmarshallable

type IUnmarshallable[T proto.Message] interface {
	UnmarshalMessage(T) error
}

IUnmarshallable is the interface for custom defined types customizing value assignment. Note that only pointer can implement interface iUnmarshalValue.

Jump to

Keyboard shortcuts

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