1
0
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:
ZhengYang
2014-08-19 17:00:37 +08:00
parent daaccf8972
commit 98b3d4ee37
3 changed files with 94 additions and 40 deletions

View File

@ -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