mz

golang进行安卓开发环境部署

gomobile插件安装:https://mzblogg.com/go-get-gopm/ 下载:AndroidNDK 选择符合的操作系统及位数的NDK包:https://developer.android.google.cn/ndk/downloads/index.html  解压,放到一个你记得住的目录 3) 尝试编译第一个Android apk安装包cmd命令:gomobile build […]

解决go get被墙问题:connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

gopm 插件可以实现安装拓展不被墙,但是由于go get被墙go get -u github.com/gpmgo/gopm便无法下载 事实上整个golang.org的拓展随着google一起被墙 解决:github.com没有被墙,而上面有gopm的源码使用: go get -v github.com/gpmgo/gopm 完美解决,这是下载别的拓展时,将go get换为gopm get例如: […]

Go语言基础

代码格式 package main import ( “fmt” ) const c = “C” var v int = 5 type T struct{} func init() { // initialization of package } func main() { var a int Func1() // … fmt.Println(a) } func (t T) Method1() […]