letmegrpc icon indicating copy to clipboard operation
letmegrpc copied to clipboard

Not working with Windows

Open Falco20019 opened this issue 6 years ago • 3 comments

The directory list for GOPATH is concatenated using envs[i] + ":" + tmpDir. But Windows needs it to be envs[i] + ";" + tmpDir since the list separator is a semicolon.

Falco20019 avatar Apr 13 '18 11:04 Falco20019

Very interesting. Would you like to fix it with a pull request pretty please :D

awalterschulze avatar Apr 13 '18 11:04 awalterschulze

I don't know GoLang good enough to know how to differentiate between the different OS and what a good solution would look like. I just changed it to semicolon for me and did go install since that fixed it for me. But I'm sure that's not the solution you want in the PR ;-)

Falco20019 avatar Apr 13 '18 11:04 Falco20019

Here is a snippet from stack overflow to help.

if runtime.GOOS == "windows" {
    fmt.Println("Hello from Windows")
}

https://stackoverflow.com/questions/19847594/how-to-reliably-detect-os-platform-in-go

The rest should be easy, or am I missing something?

awalterschulze avatar Apr 13 '18 12:04 awalterschulze