go 操作支持格式化代码

This commit is contained in:
zhangdeman committed 2022-05-22 22:13:01 +08:00
1 parent 68b298a21d
commit bced9bb506
1 file changed
+1 -1
+1 -1
View File
@@ -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", "./*"})
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.