go 操作支持格式化代码

This commit is contained in:
白茶清欢 2022-05-22 22:13:01 +08:00
parent 68b298a21d
commit bced9bb506

View File

@ -131,5 +131,5 @@ func (g *golang) GetRecommendGoProxyList() []string {
// //
// Date : 22:09 2022/5/22 // Date : 22:09 2022/5/22
func (g *golang) FormatCode() *define.Result { func (g *golang) FormatCode() *define.Result {
return Execute(g.workDir, g.goCmdPath, []string{"-w", "-l", "./*"}) return Execute(g.workDir, "gofmt", []string{"-w", "-l", "./*"})
} }