GonvertJS turns Go code into readable JavaScript that runs in Node or the browser. It type-checks the code like the Go toolchain does, then generates plain ES2022.
What works: goroutines, channels, select, generics, interfaces, defer/panic/recover, and a part of the standard library.
How it's checked: every test program is run with Go and as JavaScript, and the outputs must match byte for byte. It also passes 101 of 138 of Go's own conformance tests.
Status: experimental, one developer. If you need this for real work today, use GopherJS: it is much more mature and covers far more of Go. GonvertJS is for trying new ideas and for people who want to help test it.
Top comments (0)