Any Go Mobile Devs?

xuanbao · · 147 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<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&#39;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&#39;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="" rel="nofollow">video</a> , <a href="" 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="" rel="nofollow"></a></li> <li><a href="" rel="nofollow"></a></li> </ul> <p>We have a <a href="" rel="nofollow">Go + React native app</a> too (sorry, the react code is minimized).</p> <p>For a &#34;full go&#34; app, as far as I know, you need to rely on openGL, maybe something like <a href="" rel="nofollow">andlabs</a> or <a href="" rel="nofollow">nuklear</a> works, but I didn&#39;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&#39;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="" rel="nofollow"></a> and <a href="" rel="nofollow"></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&#39;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&#39;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群:701969077

147 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传