imports.go 218 B

12345678910111213
  1. package gen
  2. import (
  3. "github.com/tal-tech/go-zero/tools/goctl/model/sql/template"
  4. )
  5. func genImports(withCache bool) string {
  6. if withCache {
  7. return template.Imports
  8. } else {
  9. return template.ImportsNoCache
  10. }
  11. }