我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Android上运行Go程序?

I have a go library that i want to run on android and use its methods in my android app. I could write the whole android app in go to make it easier to use this dependency. Is this possible? If so, how?

You can use a Go library from Java when developing for Android with gobind (see this example in the gomobile repository). The biggest issue with this is integration into the build system.

For Go 1.5 things are getting better, but you'll have to wait for that.

近期文章

  • 无法在Golang中为ASN解码定义正确的结构
  • 与grpc.ClientStreams交互时,是否需要调用Recv直到获得io.EOF?
  • 具有未知属性的接口
  • 在Go中是否有静态方法来获取当前请求/上下文?
  • 是Lang(带有标记的)枚举-大于64b?
  • docker-compose up超时与UnixHTTPConnectionPool
  • 有没有一种标准的方法来编码Go中包含正斜杠和空格的URI组件?
  • 使用curl连接到Go RPC
  • 如何在GXUI中设置LinearLayout的大小
  • 如何使用Beego制作API测试文件
  • HTTP客户端挂起
  • 数组Varchar(psql)到数组字符串(golang)
  • 使用Go-client的Aerospike键值存储[关闭]
  • 如何断言模拟方法调用与testify按顺序发生?
  • 为什么在此golang教程中将指针用于结构实例? [关闭]
  • 在上下文中存储请求和会话ID。
  • Golang NewChunkedReader用法
  • Golang中的REST应用程序文件夹结构
  • Godeps的发展流程?
  • Golang连接到angularjs

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华