feat: use go:embed to embed templates (#1756)
This commit is contained in:
6
tools/goctl/model/mongo/template/error.tpl
Normal file
6
tools/goctl/model/mongo/template/error.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
package model
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrNotFound = errors.New("not found")
|
||||
var ErrInvalidObjectId = errors.New("invalid objectId")
|
||||
Reference in New Issue
Block a user