As go support below system , what is the difference of android/386 and
linux/386
are darwin/arm mean ios ?
can go code compile as c library for android and ios ?
> go tool dist list
> android/386
> android/amd64
> android/arm
> android/arm64
> darwin/386
> darwin/amd64
> darwin/arm
> darwin
I am intend to build go code as c library , and link this library in
other c code . then integrate in android and ios.
But I meet errors in the first step build go code as c library for arm
darwin
2017-04-12 0:14 GMT+08:00 hui zhang :
> I want to support go on android and ios.
>
> package m
I want to support go on android and ios.
package main
> import "fmt"
> import "C"
> //export GoAdder
> func GoAdder(x, y int) int {
> fmt.Printf("Go says: adding %v and %v\n", x, y)
> return x + y
> }
> //export GetMugenVersion
> func GetMugVersion() string {
> str := "Go s