优化go cmd path 的处理

This commit is contained in:
白茶清欢 2022-06-14 20:04:19 +08:00
parent bced9bb506
commit 6af88e80af

View File

@ -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,
} }
} }