protox

package
v0.0.0-...-79493f0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[M proto.Message](m M) M

func CloneSlice

func CloneSlice[S ~[]M, M proto.Message](s S) S

func MessageSlice

func MessageSlice[S []E, E proto.Message](s S) []proto.Message

func ProtoSlice

func ProtoSlice[S []E, E proto.Message](s []proto.Message) S

func UnwrapBoolSlice

func UnwrapBoolSlice(s []*wrapperspb.BoolValue) []bool

func UnwrapBytesSlice

func UnwrapBytesSlice(s []*wrapperspb.BytesValue) [][]byte

func UnwrapFloat32Slice

func UnwrapFloat32Slice(s []*wrapperspb.FloatValue) []float32

func UnwrapFloat64Slice

func UnwrapFloat64Slice(s []*wrapperspb.DoubleValue) []float64

func UnwrapInt32Slice

func UnwrapInt32Slice(s []*wrapperspb.Int32Value) []int32

func UnwrapInt64Slice

func UnwrapInt64Slice(s []*wrapperspb.Int64Value) []int64

func UnwrapStringSlice

func UnwrapStringSlice(s []*wrapperspb.StringValue) []string

func UnwrapUint32Slice

func UnwrapUint32Slice(s []*wrapperspb.UInt32Value) []uint32

func UnwrapUint64Slice

func UnwrapUint64Slice(s []*wrapperspb.UInt64Value) []uint64

func WrapBoolSlice

func WrapBoolSlice(s []bool) []*wrapperspb.BoolValue

func WrapBytesSlice

func WrapBytesSlice(s [][]byte) []*wrapperspb.BytesValue

func WrapFloat32Slice

func WrapFloat32Slice(s []float32) []*wrapperspb.FloatValue

func WrapFloat64Slice

func WrapFloat64Slice(s []float64) []*wrapperspb.DoubleValue

func WrapInt32Slice

func WrapInt32Slice(s []int32) []*wrapperspb.Int32Value

func WrapInt64Slice

func WrapInt64Slice(s []int64) []*wrapperspb.Int64Value

func WrapStringSlice

func WrapStringSlice(s []string) []*wrapperspb.StringValue

func WrapUint32Slice

func WrapUint32Slice(s []uint32) []*wrapperspb.UInt32Value

func WrapUint64Slice

func WrapUint64Slice(s []uint64) []*wrapperspb.UInt64Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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