2 ms·
> the biggest issue for most people will be the unminified file size I wanted to write my validation logic in Go and use that at the client side too, in a Reac
by egeozcan 12y ago
> the biggest issue for most people will be the unminified file size
I wanted to write my validation logic in Go and use that at the client side too, in a React app. Size was indeed my biggest problem. Gzipped size was around 60KB, and that's after the closure compiler advanced level minification. It would make sense if the whole app was being written in Go but having a JS channels implementation transferred through the wire, only never to be used is a bit too much for sharing simple code. I hope that this project becomes very successful and the output gets further optimized.
- andrewchambers 12y agoI still think gopherjs should emit code compatible with and annotated for the google closure compiler. The fact that go programs have all source present, and are statically typed, means it could emit some tiny code.