Versions in this module Expand all Collapse all v1 v1.11.0 Mar 16, 2021 Changes in this version + var ConfigFilenames = []string + type BreakConfig struct + AllowBetaDeps bool + IncludeBeta bool + type CompileConfig struct + AllowUnusedImports bool + IncludePaths []string + IncludeWellKnownTypes bool + ProtobufVersion string + type Config struct + Break BreakConfig + Compile CompileConfig + Create CreateConfig + DirPath string + ExcludePrefixes []string + Gen GenConfig + Lint LintConfig + type ConfigProvider interface + Get func(filePath string) (Config, error) + GetExcludePrefixesForData func(dirPath string, externalConfigData string) ([]string, error) + GetExcludePrefixesForDir func(dirPath string) ([]string, error) + GetFilePathForDir func(dirPath string) (string, error) + GetForData func(dirPath string, externalConfigData string) (Config, error) + GetForDir func(dirPath string) (Config, error) + func NewConfigProvider(options ...ConfigProviderOption) ConfigProvider + type ConfigProviderOption func(*configProvider) + func ConfigProviderWithDevelMode() ConfigProviderOption + func ConfigProviderWithLogger(logger *zap.Logger) ConfigProviderOption + type CreateConfig struct + DirPathToBasePackage map[string]string + type ExternalConfig struct + Break struct{ ... } + Create struct{ ... } + Excludes []string + Generate struct{ ... } + Lint struct{ ... } + Protoc struct{ ... } + type GenConfig struct + GoPluginOptions GenGoPluginOptions + Plugins []GenPlugin + type GenGoPluginOptions struct + ExtraModifiers map[string]string + ImportPath string + type GenPlugin struct + FileSuffix string + Flags string + GetPath func() (string, error) + IncludeImports bool + IncludeSourceInfo bool + Name string + OutputPath OutputPath + Type GenPluginType + type GenPluginType int + const DefaultConfigFilename + const GenPluginTypeGo + const GenPluginTypeGogo + const GenPluginTypeNone + func ParseGenPluginType(s string) (GenPluginType, error) + func (g GenPluginType) IsGo() bool + func (g GenPluginType) IsGogo() bool + func (g GenPluginType) String() string + type LintConfig struct + AllowSuppression bool + ExcludeIDs []string + FileHeader string + Group string + IgnoreIDToFilePaths map[string][]string + IncludeIDs []string + JavaPackagePrefix string + NoDefault bool + type OutputPath struct + AbsPath string + RelPath string