go 操作支持格式化代码
This commit is contained in:
parent
68b298a21d
commit
bced9bb506
@ -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", "./*"})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user