优化go cmd path 的处理

This commit is contained in:
zhangdeman committed 2022-06-14 20:04:19 +08:00
1 parent bced9bb506
commit 6af88e80af
1 file changed
+5 -2
+5 -2
View File
@@ -19,10 +19,13 @@ import (
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:04 2022/5/22
func Golang(workDir string) *golang {
func Golang(workDir string, goCmdPath string) *golang {
if len(goCmdPath) == 0 {
goCmdPath = "go"
}
return &golang{
workDir: workDir,
goCmdPath: "go",
goCmdPath: goCmdPath,
}
}
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.