Go Mobile
约 1 分钟阅读
- golang/mobileGitHubgolang/mobilegolang/mobile · Project Wiki · Go! Golang and Gomobile vs Android+Kotlin and IOS+Swift · React Native: Why and How to Build Your Native Code in Go笔记:Go Mobile
- Project WikiGitHubgolang/go/wiki/Mobilegolang/mobile · Project Wiki · Go! Golang and Gomobile vs Android+Kotlin and IOS+Swift · React Native: Why and How to Build Your Native Code in Go笔记:Go Mobile
Usage
# Install gomobile
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# Install example
go get -d golang.org/x/mobile/example/basic
# Build for Android
gomobile build -target=android golang.org/x/mobile/example/basic
# Install to device
gomobile install golang.org/x/mobile/example/basic
# Build for iOS
gomobile build -target=ios golang.org/x/mobile/example/basic
ios-deploy -b basic.app依赖包golang.org/x/mobile/cmd/gomobileGo 包golang.org/x/mobile/cmd/gomobileGogolang.org/x/mobile/example/basicGo 包golang.org/x/mobile/example/basicGo
References
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub2 条
- golang/go/wiki/Mobilegithub.com/golang/go/wiki/Mobile
- golang/mobilegithub.com/golang/mobile
其他外链2 条
- medium.com/@igor.stebliy/go-golang-and-gomobile-vs-android-kotlin-and-ios-swift-599469d7e74amedium.com/@igor.stebliy/go-golang-and-gomobile-vs-android-kotlin-and-ios-swift-599469d7e74a
- medium.com/@jondot/react-native-why-and-how-to-build-your-native-code-in-go-9fee492f0daamedium.com/@jondot/react-native-why-and-how-to-build-your-native-code-in-go-9fee492f0daa