优化go cmd path 的处理
This commit is contained in:
		| @ -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