Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
playground: compile gofmt, golint to wasm to lint/format code from the browser #32331
What did you do?
i played a bit with
i tried to compile but
i really like the idea and it's possible to refactor
if not i'll go and do the proof of concept at a new repo and just copy some pieces of gofmt to build the wasm version.
the first test parsing go code with the
thanks in advance
My playground here now does this: https://ccbrown.github.io/go-web-gc/
I don't really see any real reason why any refactoring or code changes would be needed for use in the playground or plugins.
Shipping the gofmt WASM (~1MB) with the playground would probably increase network traffic for your average user though, and as for embedding into Atom or other IDEs... why not just use the host's Go binaries? (I'm assuming not many people write Go without having Go installed.)