I am making a WebAssembly app with Go. Currently, it is 8.1MB uncompressed and 2MB gzipped. This is too much. I want to use TinyGo, but I need to send HTTP GET requests. TinyGo currently doesn't support net/http. But, TinyGo has syscall/js which allows you to do fetch(). But I couldn't find out how to use JS await using syscall/js. I also tried using channels from handlers and returning the value of channels, but this gave me fatal error: All goroutines are asleep. Deadlock!.
Are there any alternatives for net/http that work with tinygo or ways to use fetch and return values instead of having callbacks? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c9da6d9d-06b2-43ef-8d82-f820e616be1en%40googlegroups.com.