You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// data is the struct sent to the template parserdata:=struct {
ConfigDirstringInterfaceDirstringInterfaceDirRelativestringInterfaceFilestringInterfaceNamestringInterfaceNameCamelstringInterfaceNameLowerCamelstringInterfaceNameSnakestringInterfaceNameLowerstringMockstringMockNamestringPackageNamestringPackagePathstring
}{
ConfigDir: filepath.Dir(c.Config),
InterfaceDir: filepath.Dir(iface.FileName),
InterfaceDirRelative: interfaceDirRelative,
InterfaceFile: iface.FileName,
InterfaceName: iface.Name,
// Deprecated: All custom case variables of InterfaceName will be removed in the next major version// Use the template functions insteadInterfaceNameCamel: strcase.ToCamel(iface.Name),
InterfaceNameLowerCamel: strcase.ToLowerCamel(iface.Name),
InterfaceNameSnake: strcase.ToSnake(iface.Name),
InterfaceNameLower: strings.ToLower(iface.Name),
Mock: mock,
MockName: c.MockName,
PackageName: iface.Pkg.Types.Name(),
PackagePath: iface.Pkg.Types.Path(),
}
This is to disambiguate the source vs dest package naming.
The text was updated successfully, but these errors were encountered:
In
config.go
:This is to disambiguate the source vs dest package naming.
The text was updated successfully, but these errors were encountered: