mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
12 lines
266 B
Go
12 lines
266 B
Go
package util
|
|
|
|
var headTemplate = `// Code generated by goctl. DO NOT EDIT!
|
|
// Source: {{.source}}`
|
|
|
|
func GetHead(source string) string {
|
|
buffer, _ := With("head").Parse(headTemplate).Execute(map[string]interface{}{
|
|
"source": source,
|
|
})
|
|
return buffer.String()
|
|
}
|