goplayspace icon indicating copy to clipboard operation
goplayspace copied to clipboard

Consider adding linters

Open AlekSi opened this issue 8 years ago • 1 comments

Specifically, I would like to see go vet.

AlekSi avatar Aug 09 '17 15:08 AlekSi

Thanks for the suggestion, Alexey. Unfortunately, go vet is a command, not a package one can use directly from external code, so it makes it currently impossible to plug into Go Play Space (GPS), since GPS runs formatting/validation in the browser, without any backend code. The actual code execution is proxied to the official Go Playground, so if Go Playground adds an ability for linting, I'll happily support it. Note that some linters also require the file to be saved to disk in the proper directory relative to GOPATH, which might be also a potential obstacle in implementing linting for playground scripts.

iafan avatar Aug 10 '17 06:08 iafan