header_template.go 570 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. var _headerTemplate = `
  3. // Code generated by $GOPATH/src/go-common/app/tool/cache/mc. DO NOT EDIT.
  4. NEWLINE
  5. /*
  6. Package {{.PkgName}} is a generated mc cache package.
  7. It is generated from:
  8. ARGS
  9. */
  10. NEWLINE
  11. package {{.PkgName}}
  12. import (
  13. "context"
  14. "fmt"
  15. {{if .UseStrConv}}"strconv"{{end}}
  16. {{if .EnableBatch }}"sync"{{end}}
  17. NEWLINE
  18. "go-common/library/stat/prom"
  19. {{if .UseMemcached }}"go-common/library/cache/memcache"{{end}}
  20. {{if .EnableBatch }}"go-common/library/sync/errgroup"{{end}}
  21. "go-common/library/log"
  22. {{.ImportPackage}}
  23. )
  24. var _ _mc
  25. `