gopherjsvet is GopherJS's cousin to go vet
. It detects a number of suspicious constructs and errors specific to GopherJS. It is not a replacement for go vet
, but a suppliment. You should use both on your GopherJS projects.
To install gopherjsvet
locally:
go install github.com/gopherjs/gopherjsvet@main