Consider adding linters
AlekSi opened this issue · 1 comments
AlekSi commented
Specifically, I would like to see go vet
.
iafan commented
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.