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:
@ -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 (
|
||||
|
Reference in New Issue
Block a user