1.在不同的环境执行指令
var wantToRunPath string
sysType := runtime.GOOS
if sysType == "linux" || sysType == "unix" {
// LINUX系统
cmd1 := exec.Command("./_stop.sh")
cmd1.Dir = wantToRunPath
_ = cmd1.Run()
} else {
cmd1 := exec.Command("cmd.exe", "/C", "runBat.bat")
cmd1.Dir = wantToRunPath
_ = cmd1.Run()
}