feat: Replace mongo package with monc & mon (#2002)

* Replace mongo package with monc & mon

* Add terminal whitespace

* format code
This commit is contained in:
anqiansong
2022-06-12 23:02:34 +08:00
committed by GitHub
parent ed1c937998
commit c27e00b45c
16 changed files with 544 additions and 255 deletions

View File

@@ -2,10 +2,20 @@ package template
import _ "embed"
// Text provides the default template for model to generate.
//go:embed model.tpl
var Text string
var (
// ModelText provides the default template for model to generate.
//go:embed model.tpl
ModelText string
// Error provides the default template for error definition in mongo code generation.
//go:embed error.tpl
var Error string
// ModelCustomText provides the default template for model to generate.
//go:embed model_custom.tpl
ModelCustomText string
// ModelTypesText provides the default template for model to generate.
//go:embed types.tpl
ModelTypesText string
// Error provides the default template for error definition in mongo code generation.
//go:embed error.tpl
Error string
)