Tinygo is neat, but the one time I tried to use it in practice, it failed me. The following program will panic when compiled to wasm:
package main
import "encoding/json"
func main() {
var parsed interface{}
json.Unmarshal([]byte(`{"test":42}`), &parsed)
}
(It's been a while, so I forgot the problem with it was.)I'm curious what kind of text parsing you do. I ended up rolling with valyala/fastjson, but that's very much not what I was imagining. Lots of existing libraries don't work either, and finding out what does and what doesn't is pain. Is there some trick to working with it?