waigani / GoOracle

GoOracle is a Golang plugin for SublimeText that integrates the Go oracle tool.
MIT License
73 stars 17 forks source link

add support for windows #11

Open liuhewei opened 9 years ago

liuhewei commented 9 years ago

Hi @waigani ,

Follow https://github.com/waigani/GoOracle/issues/10, I added the support for windows. Codes are simple, just to let it work, and not affect OSX/linux part. Modified places:

After this change, the GOPATH settings support multiple paths, for example:

"GoOracle":
{
    "env":
    {
        "GOPATH": "D:\\Codes\\gocode\\huaweitech;D:\\Codes\\gocode\\huaweitech\\src\\github.com\\cloudfoundry\\cli/Godeps/_workspace",
        "GOROOT": "D:\\Tools\\Golang",
    },
    // other settings
}

Hope it could help guys who have the same requirements with me. So please check it if you have time :)