pbutils

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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