Versions in this module Expand all Collapse all v2 v2.31.10 Jul 10, 2023 Changes in this version + var ErrNoConfigFile = fmt.Errorf("no config file exists") + var ErrNoGoFilesFoundInRoot = fmt.Errorf("no go files found in root search path") + var ErrPkgNotFound = fmt.Errorf("package not found in config") + type Config struct + All bool + BoilerplateFile string + BuildTags string + Case string + Config string + Cpuprofile string + Dir string + DisableConfigSearch bool + DisableVersionString bool + DryRun bool + Exclude []string + Exported bool + FileName string + InPackage bool + InPackageSuffix bool + KeepTree bool + LogLevel string + MockName string + Name string + Note string + Outpkg string + Output string + Packageprefix string + Packages map[string]interface{} + Print bool + Profile string + Quiet bool + Recursive bool + ReplaceType []string + SrcPkg string + StructName string + TestOnly bool + UnrollVariadic bool + Version bool + WithExpecter bool + func NewConfigFromViper(v *viper.Viper) (*Config, error) + func (c *Config) CfgAsMap(ctx context.Context) (map[string]any, error) + func (c *Config) ExcludePath(path string) bool + func (c *Config) GetInterfaceConfig(ctx context.Context, packageName string, interfaceName string) ([]*Config, error) + func (c *Config) GetPackageConfig(ctx context.Context, packageName string) (*Config, error) + func (c *Config) GetPackages(ctx context.Context) ([]string, error) + func (c *Config) Initialize(ctx context.Context) error + func (c *Config) ShouldGenerateInterface(ctx context.Context, packageName, interfaceName string) (bool, error) + type Interface struct + Config Config