package
0.0.0-20230306131847-26f457599b8d
Repository: https://github.com/xiaoyawei/buf.git
Documentation: pkg.go.dev
# Functions
CcEnableArenas returns a Modifier that sets the cc_enable_arenas file option to the given value in all of the files contained in the Image.
CsharpNamespace returns a Modifier that sets the csharp_namespace file option according to the package name.
GoPackage returns a Modifier that sets the go_package file option according to the given defaultImportPathPrefix, exceptions, and overrides.
GoPackageImportPathForFile returns the go_package import path for the given ImageFile.
JavaMultipleFiles returns a Modifier that sets the java_multiple_files file option to the given value in all of the files contained in the Image.
JavaOuterClassname returns a Modifier that sets the java_outer_classname file option in all of the files contained in the Image based on the PascalCase of their filename.
JavaPackage returns a Modifier that sets the java_package file option according to the given packagePrefix.
JavaStringCheckUtf8 returns a Modifier that sets the java_string_check_utf8 file option according to the given value.
Merge merges the given modifiers together so that they are run in the order they are provided.
NewFileOptionSweeper constructs a new file option Sweeper that removes the SourceCodeInfo_Locations associated with the marks.
NewMultiModifier returns a new Modifier for the given Modifiers.
ObjcClassPrefix returns a Modifier that sets the objc_class_prefix file option according to the package name.
OptimizeFor returns a Modifier that sets the optimize_for file option to the given value in all of the files contained in the Image.
PhpMetadataNamespace returns a Modifier that sets the php_metadata_namespace file option according to the package name.
PhpNamespace returns a Modifier that sets the php_namespace file option according to the package name.
RubyPackage returns a Modifier that sets the ruby_package file option according to the given packagePrefix.
# Constants
CcEnableArenasID is the ID of the cc_enable_arenas modifier.
CsharpNamespaceID is the ID of the csharp_namespace modifier.
DefaultJavaMultipleFilesValue is the default value for the java_multiple_files modifier.
DefaultJavaPackagePrefix is the default java_package prefix used in the java_package modifier.
GoPackageID is the ID of the go_package modifier.
JavaMultipleFilesID is the ID of the java_multiple_files modifier.
JavaOuterClassNameID is the ID for the java_outer_classname modifier.
JavaPackageID is the ID of the java_package modifier.
JavaStringCheckUtf8ID is the ID of the java_string_check_utf8 modifier.
ObjcClassPrefixID is the ID of the objc_class_prefix modifier.
OptimizeForID is the ID for the optimize_for modifier.
PhpMetadataNamespaceID is the ID of the php_metadata_namespace modifier.
PhpNamespaceID is the ID of the php_namespace modifier.
RubyPackageID is the ID of the ruby_package modifier.
# Type aliases
ModifierFunc is a convenience type that implements the Modifier interface.