The question is, why would I want that?<p>With the availability of Kotlin, Groovy or (somewhat limited I believe, but still) Scala on Android, what advantages does Go offer?<p>I was under impression that it's more of a backend language, tailored to the needs of backend devs<p>I understand the crossplatform argument - write a platform-agnostic library in Go, and use it in your iOS and Android app etc. but it doesn't answer "why Go, of all languages".<p>It's an honest question, not a flamebait. Is there anything specific about Go that makes it well suited for mobile environment, or is it like a using a great shiny truck to deliver pizza "because you can" : )
Why not write it in C and slap on the native cocoa/win/gtk/android front end and have something totally "portable" to mac/ios/android/windows/linux?
I have been playing with the gomobile "bind" command to generate cross platform libraries for my Android and iOS app. Its quite easy to use, but the GC has been a pain in the ass on iOS. Its hard to track what the Go GC is doing and I am fighting with a bunch of EXC_BAD_ACCESS errors when calling operations on Go data structures. Still its a pretty fun experiment to have one backend for all the different native front ends.
Would like to see some apps which use go as business logic. Nevertheless there is not just iOS and Android. It would be great to have also JS covered.<p>Does somebody know if there is a go -> emscripten/asm.js toolchain/example available?
Waiting for them to release the source for Ivy. I made PoC android app writing UI in Java... but curious to know how to do it purely in Go without knowing how to interact with OpenGL.