优化go cmd path 的处理
This commit is contained in:
parent
bced9bb506
commit
6af88e80af
@ -19,10 +19,13 @@ import (
|
|||||||
// Author : go_developer@163.com<白茶清欢>
|
// Author : go_developer@163.com<白茶清欢>
|
||||||
//
|
//
|
||||||
// Date : 20:04 2022/5/22
|
// 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{
|
return &golang{
|
||||||
workDir: workDir,
|
workDir: workDir,
|
||||||
goCmdPath: "go",
|
goCmdPath: goCmdPath,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user