mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-08 23:50:00 +08:00
14 lines
218 B
Go
14 lines
218 B
Go
package gen
|
|
|
|
import (
|
|
"github.com/tal-tech/go-zero/tools/goctl/model/sql/template"
|
|
)
|
|
|
|
func genImports(withCache bool) string {
|
|
if withCache {
|
|
return template.Imports
|
|
} else {
|
|
return template.ImportsNoCache
|
|
}
|
|
}
|