文章分类 -  Go

摘要:func StructPtr(s ST_LOGIN_PARAM) uintptr { stl := new(ST_LOGIN_PARAM) stl = &s stl2 := unsafe.Pointer(stl) return uintptr(stl2) } 阅读全文
posted @ 2021-12-01 10:42 无限指数增长 阅读(90) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-30 20:30 无限指数增长 阅读(12) 评论(0) 推荐(0)
摘要:问题: dlv-dap.exe dap --check-go-version=false --listen=127.0.0.1:62068 from h:\go\go-03 DAP server listening at: 127.0.0.1:62068 Build Error: go build 阅读全文
posted @ 2021-11-29 15:33 无限指数增长 阅读(642) 评论(0) 推荐(0)
摘要:go语言可以把任何类型作为返回值,包括函数 比如 func func1(a int) func(){ /* 函数主体 */ } 阅读全文
posted @ 2021-11-29 13:16 无限指数增长 阅读(85) 评论(0) 推荐(0)
摘要:go 开发环境下载 https://gomirrors.org/ 开发环境部署 1. 替换默认地址为国内代理地址 go env -w GOPROXY=https://goproxy.cn 参考文档: 解决go包管理代理网址无法访问:proxy.golang.org 阅读全文
posted @ 2021-11-29 13:14 无限指数增长 阅读(25) 评论(0) 推荐(0)