Documentation
¶
Index ¶
- Constants
- Variables
- func DirPathToImportPath(dirPath string) string
- func ParseExpr(expr ast.Expr, fileContent string) string
- type CmdExec
- func (ce *CmdExec) ExecBuild(dir string, args ...string) error
- func (ce *CmdExec) ExecFmt(dir string, args ...string) error
- func (ce *CmdExec) ExecLint(dir string, args ...string) error
- func (ce *CmdExec) ExecMock(dir string, args ...string) error
- func (ce *CmdExec) ExecTest(dir string, args ...string) error
- func (ce *CmdExec) ExecWire(dir string, args ...string) error
- type CmdExecOption
- type Exec
- type Field
- type Fields
- type Import
- type Imports
- type NullExec
- func (ce *NullExec) ExecBuild(dir string, args ...string) error
- func (ce *NullExec) ExecFmt(dir string, args ...string) error
- func (ce *NullExec) ExecLint(dir string, args ...string) error
- func (ce *NullExec) ExecMock(dir string, args ...string) error
- func (ce *NullExec) ExecTest(dir string, args ...string) error
- func (ce *NullExec) ExecWire(dir string, args ...string) error
- type Var
- type Vars
Constants ¶
View Source
const ( WireCmd = "wire" MockeryCmd = "mockery" LintCmd = "lint" GolangCiLintCmd = "golangci-lint" )
Variables ¶
View Source
var ZoreTime = time.Time{}
Functions ¶
Types ¶
type CmdExec ¶
type CmdExec struct {
// contains filtered or unexported fields
}
type CmdExecOption ¶ added in v0.1.1
type CmdExecOption func(*CmdExec)
func WithCmdExecLogger ¶ added in v0.1.1
func WithCmdExecLogger(logger log.Logger) CmdExecOption
type Exec ¶
type Exec interface { ExecWire(string, ...string) error ExecFmt(string, ...string) error ExecTest(string, ...string) error ExecBuild(string, ...string) error ExecMock(string, ...string) error ExecLint(string, ...string) error }
func NewCmdExec ¶
func NewCmdExec(options ...CmdExecOption) Exec
func NewNullExec ¶
func NewNullExec() Exec
type Field ¶
type Field struct { Name string Type string TypeName string // Name + type or type. Field string Size int Doc []string Tag string }
Struct field.
type NullExec ¶
type NullExec struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.