Documentation
¶
Overview ¶
Package ensurefile assists with loading and representing .ensure.yml files.
Index ¶
Constants ¶
View Source
const ExampleFile = `` /* 512-byte string literal not displayed */
ExampleFile for use in error messages and CLI help menus.
Variables ¶
View Source
var ( ErrCannotFindGoModule = erk.New(ErkCannotLoadConfig{}, "Cannot find root go.mod file by searching parent working directories") ErrCannotParseGoModule = erk.New(ErkCannotLoadConfig{}, "Cannot read module path from go.mod file: {{.path}}") ErrCannotOpenFile = erk.New(ErkCannotLoadConfig{}, "Cannot open the file '{{.path}}': {{.err}}") ErrCannotUnmarshalFile = erk.New(ErkCannotLoadConfig{}, "Cannot parse the file '{{.path}}': {{.err}}") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DisableParallelGeneration bool `yaml:"-"` RootPath string `yaml:"-"` ModulePath string `yaml:"-"` Mocks *MockConfig `yaml:"mocks"` }
Config is the root of the .ensure.yml file.
type ErkCannotLoadConfig ¶
type ErkCannotLoadConfig struct{ erk.DefaultKind }
type LoaderIface ¶
type MockConfig ¶
Click to show internal directories.
Click to hide internal directories.