Closed
Description
Describe the bug
如果不生成带缓存的代码,xxx_model_gen.go 不应该 import 进来 "github.com/zeromicro/go-zero/core/stores/sqlc" 依赖!
To Reproduce
-
The code is
goctl model mysql datasource --url 'xxx' -t '*' --style go_zero -d model
-
The error is
Error: Unused import "github.com/zeromicro/go-zero/core/stores/sqlc"
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
- OS: MacOS Sonoma 14.2.1
- go-zero version 1.6.1
- goctl version 1.6.1 darwin/amd64
Metadata
Metadata
Assignees
Labels
No labels