What version of Go are you using? It sounds like an older one. Try the latest (1.12.x).
The syscall/js API is still in development and undergoing API changes. It’s not stable like the rest of Go’s standard library.
The syscall/js API is still in development and undergoing API changes. It’s not stable like the rest of Go’s standard library.
edit: Updatd to 1.12—no dice. Many of the errors did go the way of the buffalo, but a couple remain:
2019/03/29 11:08:37 Error from compile: exit status 2 (out path="/var/folders/lp/d1rds9q57wqdmgchmzjjrh3hfsm71q/T/main_wasm_237110380"); Output:
# example.com/test/testapp
./root.go:11:13: undefined: RotData
./root.go:37:30: data.Toggle undefined (type *RootData has no field or method Toggle)
./root.go:47:8: data.Toggle undefined (type *RootData has no field or method Toggle)