<p>There used to be some noise around Go Mobile but unfortunatley the winds have calmed now for over a year. Is anyone here familiar with writing mobile cross-plattform Go Apps (or libraries)?</p>
<p>I'm a former Android Dev and I have been looking out for technologies to write cross-plattform code and wiring it later to the UI, I have read some articles about doing this in Go but at the end most of it was still buggy.</p>
<p>Unfortunatley I endet up using React Native and Flutter, yet I'd love to see a Go solution for this</p>
<hr/>**评论:**<br/><br/>still_unregistered: <pre><p>Not sure if this is what you are looking for, but I gave a talk about gomobile (mostly the <em>bind</em> option, to make your logic in Go, but your UI in java or something else, like react native) at FOSDEM last year, (<a href="https://www.youtube.com/watch?v=OaSkOjew1D4" rel="nofollow">video</a> , <a href="https://talks.madriguera.me/2017/fosdem2017.slide#1" rel="nofollow">slides</a> ) it might be a little outdated, since a few things have changes (minor details).</p>
<p>I also have a few examples/related code : </p>
<ul>
<li><a href="https://github.com/conejoninja/MyGoApplication" rel="nofollow">https://github.com/conejoninja/MyGoApplication</a></li>
<li><a href="https://github.com/conejoninja/gobindings" rel="nofollow">https://github.com/conejoninja/gobindings</a></li>
</ul>
<p>We have a <a href="https://github.com/F7U12Team/password-manager" rel="nofollow">Go + React native app</a> too (sorry, the react code is minimized).</p>
<p>For a "full go" app, as far as I know, you need to rely on openGL, maybe something like <a href="https://github.com/andlabs/ui" rel="nofollow">andlabs</a> or <a href="https://github.com/golang-ui/nuklear" rel="nofollow">nuklear</a> works, but I didn't try any of them</p></pre>shovelpost: <pre><p>Check gophers.slack.gom #go-mobile also.</p></pre>gen2brain: <pre><p>I use gomobile for couple of my projects, just <code>bind</code>, not full native Go app.
Library is compiled as <code>c-shared</code> and JNI bindings are generated for you. Then you just import library and use it in Java. This way UI is in Java and all network calls are running from Go lib. You can also wrap some interesting C libs, compiled statically with your lib, much easier then to write JNI wrapper yourself for example.</p>
<p>I don't like HTML apps, not on desktop and not on mobile. </p></pre>makavelixx: <pre><p>do you have a repo to show?</p></pre>gen2brain: <pre><p>Sure, you can check <a href="https://github.com/gen2brain/crtaci" rel="nofollow">https://github.com/gen2brain/crtaci</a> and <a href="https://github.com/gen2brain/bukanir" rel="nofollow">https://github.com/gen2brain/bukanir</a> . Both have library that is compiled with <code>gomobile</code> and used in Android project. Also, both have desktop app, with Qt bindings. Bukanir Android app is currently broken, I want to rewrite torrent part to native Go now that lib for that exists.</p>
<p>Those are first projects where I started using Go so code can be strange at many places. Also, I never programmed with Java before that, but it is not that difficult.</p></pre>guitar_potato: <pre><p>Same, I've used mostly react native with the apps I developed and its getting good, especially when using expo. But still, javascript :/</p></pre>makavelixx: <pre><p>Try TypeScript .. makes it all more fun</p></pre>guitar_potato: <pre><p>Yeah that's an interesting one thanks, been on my list to try for a while should really make the time!</p></pre>Trevadir: <pre><p>?? I use it for generating sdks but not for user interface stuff. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传