Skip to content

Commit

Permalink
格式化自动生成代码
Browse files Browse the repository at this point in the history
  • Loading branch information
swxctx committed Dec 21, 2018
1 parent f2bc435 commit f2898d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions out.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"

sh "github.com/codeskyblue/go-sh"
"github.com/usthooz/oozlog/go"
)

Expand Down Expand Up @@ -50,4 +51,6 @@ func (xj *xjson) writefileStruct() {
file.WriteString(" " + xj.Out[i] + "\n")
}
}
// 格式化
sh.Command("gofmt", "-w", ".", sh.Dir(xj.OutFile)).Run()
}

0 comments on commit f2898d0

Please sign in to comment.