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

@ -17,7 +17,6 @@ package main
import (
"fmt"
"os"
"os/exec"
"path"
"strings"
"time"
@ -60,12 +59,6 @@ func generateMigration(mname, upsql, downsql, curpath string) {
}
}
// formatSourceCode formats the source code using gofmt
func formatSourceCode(fpath string) {
cmd := exec.Command("gofmt", "-w", fpath)
cmd.Run()
}
const MIGRATION_TPL = `package main
import (