protoreflectutils

package
v0.0.0-...-abe9ea0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFileDescriptorSetWithDependencies

func BuildFileDescriptorSetWithDependencies(fileDescriptors ...protoreflect.FileDescriptor) *descriptorpb.FileDescriptorSet

func Iterate

func Iterate[T any](list ProtoreflectList[T]) iter.Seq[T]

func Map

func Map[T any, U any](list ProtoreflectList[T], mapFn func(T) U) iter.Seq[U]

func MapToSlice

func MapToSlice[T any, U any](list ProtoreflectList[T], mapFn func(T) U) []U

Types

type ProtoreflectList

type ProtoreflectList[T any] interface {
	Len() int
	Get(i int) T
}

Jump to

Keyboard shortcuts

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