go-zero/tools/goctl/model/sql/template/import.go
2022-04-01 22:19:52 +08:00

34 lines
803 B
Go

package template
const (
// Imports defines a import template for model in cache case
Imports = `import (
"context"
"database/sql"
"fmt"
"strings"
{{if .time}}"time"{{end}}
"github.com/zeromicro/go-zero/core/stores/builder"
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/sqlc"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"github.com/zeromicro/go-zero/core/stringx"
)
`
// ImportsNoCache defines a import template for model in normal case
ImportsNoCache = `import (
"context"
"database/sql"
"fmt"
"strings"
{{if .time}}"time"{{end}}
"github.com/zeromicro/go-zero/core/stores/builder"
"github.com/zeromicro/go-zero/core/stores/sqlc"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"github.com/zeromicro/go-zero/core/stringx"
)
`
)