打包在android下的可执行程序
打包的代码如下,作用是输出运行的操作系统的信息:
func main() { fmt.Print("Go runs on ") switch os := runtime.GOOS; os { case "darwin": fmt.Println("OS X.") case "linux": fmt.Println("Linux.") default: // freebsd, openbsd, // plan9, windows... fmt.Printf(
打包Golang并在Android环境下运行
最新推荐文章于 2025-01-21 09:10:42 发布