go-zero/tools/goctl/model/sql/template/import.go

29 lines
653 B
Go
Raw Normal View History

package template
2020-07-29 17:11:41 +08:00
var (
Imports = `import (
"database/sql"
"fmt"
2020-07-29 17:11:41 +08:00
"strings"
{{if .time}}"time"{{end}}
2020-07-29 17:11:41 +08:00
"github.com/tal-tech/go-zero/core/stores/cache"
2020-08-08 16:40:10 +08:00
"github.com/tal-tech/go-zero/core/stores/sqlc"
"github.com/tal-tech/go-zero/core/stores/sqlx"
"github.com/tal-tech/go-zero/core/stringx"
"github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx"
2020-07-29 17:11:41 +08:00
)
`
ImportsNoCache = `import (
"database/sql"
"strings"
{{if .time}}"time"{{end}}
"github.com/tal-tech/go-zero/core/stores/sqlc"
"github.com/tal-tech/go-zero/core/stores/sqlx"
"github.com/tal-tech/go-zero/core/stringx"
"github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx"
)
`
)