pbutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInterfaceToProtobuf

func ConvertInterfaceToProtobuf(value any) (*anypb.Any, error)

ConvertInterfaceToProtobuf converts an interface{} to a protobuf message any.

func ConvertPBAnyToInterface

func ConvertPBAnyToInterface(pbAny *anypb.Any) (any, error)

ConvertPBAnyToInterface converts a protobuf message any to an interface{}.

func DoublePtrFromPBWrapper

func DoublePtrFromPBWrapper(wrapper *wrapperspb.DoubleValue) *float64

DoublePtrFromPBWrapper converts a protobuf wrapperspb.DoubleValue to a *float64.

func DoublePtrToPBWrapper

func DoublePtrToPBWrapper(value *float64) *wrapperspb.DoubleValue

DoublePtrToPBWrapper converts a *float64 to a protobuf wrapperspb.DoubleValue.

func IntPtrFromPBWrapper

func IntPtrFromPBWrapper(wrapper *wrapperspb.Int64Value) *int

IntPtrFromPBWrapper converts a protobuf wrapperspb.Int64Value to a *int.

func IntPtrToPBWrapper

func IntPtrToPBWrapper(value *int) *wrapperspb.Int64Value

IntPtrToPBWrapper converts a *int to a protobuf wrapperspb.Int64Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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