2021-03-12 17:49:28 +08:00
|
|
|
package template
|
|
|
|
|
2022-04-04 13:12:05 +08:00
|
|
|
import _ "embed"
|
2021-03-12 17:49:28 +08:00
|
|
|
|
2022-06-12 23:02:34 +08:00
|
|
|
var (
|
|
|
|
// ModelText provides the default template for model to generate.
|
|
|
|
//go:embed model.tpl
|
|
|
|
ModelText string
|
2021-03-12 17:49:28 +08:00
|
|
|
|
2022-06-12 23:02:34 +08:00
|
|
|
// 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
|
|
|
|
)
|