mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
do not rely on goimports
This commit is contained in:
@ -38,7 +38,7 @@ func generateModel(mname, fields, crupath string) {
|
||||
content = strings.Replace(content, "{{modelStruct}}", modelStruct, -1)
|
||||
f.WriteString(content)
|
||||
// gofmt generated source code
|
||||
formatAndFixImports(fpath)
|
||||
formatSourceCode(fpath)
|
||||
ColorLog("[INFO] model file generated: %s\n", fpath)
|
||||
} else {
|
||||
// error creating file
|
||||
|
Reference in New Issue
Block a user