playground: compile gofmt, golint to wasm to lint/format code from the browser #32331
Labels
arch-wasm
WebAssembly issues
FeatureRequest
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What did you do?
i played a bit with
GOARCH=wasm
and it's great. after that i thought "what if i compile go to wasm". writing go code at the browser and compile it there. sounds crazy...Then i thought it could be helpful to compile
gofmt
orgolint
to wasm to reduce the network traffic at play.golang.org or embed it directly into atom or vscode.i tried to compile but
io
andos.stdin/stdout
packages cannot be used with the wasm compiler.i really like the idea and it's possible to refactor
gofmt
to compile to wasm. my question is if i start refactoring gofmt to build a proof of concept this will become a merge candidate?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
go/ast
packages worked well and you can see the result here: yuroyoro/goast-viewer#11thanks in advance
The text was updated successfully, but these errors were encountered: