feat(goctl): supports model code 'DO NOT EDIT' (#1728)

Resolves: #1710
This commit is contained in:
Fyn
2022-04-01 14:48:45 +08:00
committed by GitHub
parent 9c2d526a11
commit f4471846ff
8 changed files with 113 additions and 16 deletions

View File

@@ -1,5 +1,8 @@
package util
// DoNotEditHead added to the beginning of a file to prompt the user not to edit
var DoNotEditHead = "// Code generated by goctl. DO NOT EDIT!"
var headTemplate = `// Code generated by goctl. DO NOT EDIT!
// Source: {{.source}}`