Skip to content

Commit

Permalink
Use the go:generate comment convention
Browse files Browse the repository at this point in the history
This convention is defined in
https://golang.org/pkg/cmd/go/internal/generate/ as follows:

    ^// Code generated .* DO NOT EDIT\.$
  • Loading branch information
ailurarctos committed May 6, 2019
1 parent 31e8b94 commit 6263ba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const (
HeaderTemplate = `
package {{$.Package.Name}}
// DO NOT EDIT!
// The code below was generated with http://github.com/gojuno/minimock ({{$.Options.HeaderVars.Version}})
// Code generated by http://github.com/gojuno/minimock ({{$.Options.HeaderVars.Version}}). DO NOT EDIT.
{{if $.Options.HeaderVars.GenerateInstruction}}
//go:generate minimock -i {{$.SourcePackage.PkgPath}}.{{$.Options.InterfaceName}} -o {{$.Options.OutputFile}}
Expand Down
3 changes: 1 addition & 2 deletions tests/formatter_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/tester_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6263ba6

Please sign in to comment.