package
1.50.0
Repository: https://github.com/bufbuild/buf.git
Documentation: pkg.go.dev

# Functions

FreeMessageRangeStrings gets the free MessageRange strings for the target files.
ImageFilteredByTypes returns a minimal image containing only the descriptors required to define those types.
ImageFilteredByTypesWithOptions returns a minimal image containing only the descriptors required to define those types.
StripSourceRetentionOptions strips any options with a retention of "source" from the descriptors in the given image.
WithAllowFilterByImportedType returns an option for ImageFilteredByTypesWithOptions that allows a named filter type to be in an imported file or module.
WithExcludeCustomOptions returns an option that will cause an image filtered via ImageFilteredByTypesWithOptions to *not* include custom options unless they are explicitly named in the list of filter types.
WithExcludeKnownExtensions returns an option that will cause an image filtered via ImageFilteredByTypesWithOptions to *not* include the known extensions for included extendable messages unless they are explicitly named in the list of filter types.

# Variables

ErrImageFilterTypeIsImport is returned from ImageFilteredByTypes when a specified type name is declared in a module dependency.
ErrImageFilterTypeNotFound is returned from ImageFilteredByTypes when a specified type cannot be found in an image.

# Type aliases

ImageFilterOption is an option that can be passed to ImageFilteredByTypesWithOptions.