dongyu1614 2017-03-11 05:47
浏览 128
已采纳

golang移动访问文件系统

How can i access the device system in gomobile?

Is there a way to interact with the native libs?

Like this:

package xy

import(
  "Foundation"// ios libraray
)

// Do some stuff with the Foundation package
func Test(){

}
  • 写回答

1条回答 默认 最新

  • douzong2206 2017-03-12 07:39
    关注

    Yes. Take a look at Reverse Bindings here; https://godoc.org/golang.org/x/mobile/cmd/gobind

    To summarise, you import the Android/ObjectiveC library and are good to go.

    The example they give;

    import "ObjC/Foundation/NSDate d := NSDate.Date()

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?