使用go语言编写IOS和Android程序

go语言目前已可以用来开发android和ios手机app。相关资料:

 

1、IOS

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/golang-china/zEh_pdSLHDs

需要能访问google

源码:https://bitbucket.org/minux/goios

其它文档:

https://medium.com/using-go-in-mobile-apps

 

2、Android

官方源码:https://github.com/golang/mobile

环境配置:

http://studygolang.com/articles/2322

http://studygolang.com/articles/2281

需要注意的是:编译NDK时platform参数的android api level需要和项目中配置的api lelve、编译的apk文件要运行的手机上的系统版本要一致。比如我的系统是andorid 4.4.2,对应api level=19,则编译ndk中的参数以及项目中的sdk版本中必须是19

编译后,官方几个DEMO都是实现的简单的动画效果,运行截图见:

http://mp.weixin.qq.com/s?__biz=MzA4MzI2NTU4NA==&mid=206289530&idx=1&sn=66cc80cf3ce7d70cc4ada76072497e96#rd

 

posted @ 2015-05-18 21:09  klain  阅读(6431)  评论(0编辑  收藏  举报