head.go 266 B

1234567891011
  1. package util
  2. var headTemplate = `// Code generated by goctl. DO NOT EDIT!
  3. // Source: {{.source}}`
  4. func GetHead(source string) string {
  5. buffer, _ := With("head").Parse(headTemplate).Execute(map[string]interface{}{
  6. "source": source,
  7. })
  8. return buffer.String()
  9. }