diff --git a/golang.go b/golang.go index 8f1c379..24d7077 100644 --- a/golang.go +++ b/golang.go @@ -131,5 +131,5 @@ func (g *golang) GetRecommendGoProxyList() []string { // // Date : 22:09 2022/5/22 func (g *golang) FormatCode() *define.Result { - return Execute(g.workDir, g.goCmdPath, []string{"-w", "-l", "./*"}) + return Execute(g.workDir, "gofmt", []string{"-w", "-l", "./*"}) }