go 操作支持格式化代码

This commit is contained in:
zhangdeman committed 2022-05-22 22:09:38 +08:00
1 parent 0fe025ba1e
commit 68b298a21d
1 file changed
+9
+9
View File
@@ -124,3 +124,12 @@ func (g *golang) GetRecommendGoProxyList() []string {
"https://goproxy.cn/", // 基于七牛云CDN
}
}
// FormatCode 格式化代码
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 22:09 2022/5/22
func (g *golang) FormatCode() *define.Result {
return Execute(g.workDir, g.goCmdPath, []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.