chore: refactor to use const instead of var (#1731)

master
Kevin Wan 3 years ago committed by GitHub
parent f4471846ff
commit ac18cc470d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,12 @@
package util package util
// DoNotEditHead added to the beginning of a file to prompt the user not to edit const (
var DoNotEditHead = "// Code generated by goctl. DO NOT EDIT!" // DoNotEditHead added to the beginning of a file to prompt the user not to edit
DoNotEditHead = "// Code generated by goctl. DO NOT EDIT!"
var headTemplate = `// Code generated by goctl. DO NOT EDIT! headTemplate = DoNotEditHead + `
// Source: {{.source}}` // Source: {{.source}}`
)
// GetHead returns a code head string with source filename // GetHead returns a code head string with source filename
func GetHead(source string) string { func GetHead(source string) string {

Loading…
Cancel
Save