Last active
September 22, 2017 01:11
-
-
Save steeve/5036e63cbbe3ee95949d00d4a6d4203f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@43cb6924a714:/go/src/github.com/add/adder# uname -a | |
Linux 43cb6924a714 4.9.49-moby #1 SMP Thu Sep 14 07:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux | |
root@43cb6924a714:/go/src/github.com/add/adder# go version | |
go version go1.9 linux/amd64 | |
root@43cb6924a714:/go/src/github.com/add/adder# cat adder.go | |
package adder | |
func Add(a, b int) int { | |
return a + b | |
} | |
root@43cb6924a714:/go/src/github.com/add/adder# gomobile init | |
root@43cb6924a714:/go/src/github.com/add/adder# gomobile bind -target=ios github.com/add/adder | |
root@43cb6924a714:/go/src/github.com/add/adder# ls -la | |
total 16 | |
drwxr-xr-x 3 root root 4096 Sep 22 01:05 . | |
drwxr-xr-x 3 root root 4096 Sep 22 01:03 .. | |
drwxr-xr-x 3 root root 4096 Sep 22 01:05 Adder.framework | |
-rw-r--r-- 1 root root 57 Sep 22 01:04 adder.go | |
root@43cb6924a714:/go/src/github.com/add/adder# file Adder.framework/Versions/Current/Adder | |
Adder.framework/Versions/Current/Adder: Mach-O universal binary with 3 architectures: [arm_v7: current ar archive] [x86_64] [64-bit architecture=3957106] | |
root@43cb6924a714:/go/src/github.com/add/adder# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment