使用 gomobile 來建立前端共同的核心物件

同一個相同核心 用相同語言去完成 可以減少許多維護的成本

前置作業

測試環境 : macOS

Step1 :

$go get golang.org/x/mobile/cmd/gomobile

Step2 :

download from 源碼

或是 $ git clone https://github.com/golang/mobile

解壓縮完 更名為 mobile 放置到 $GOPATH/src/golang.org/x/

初始化

$gomobile init
Share Comments
comments powered by Disqus