摘要:
1.基础 接口命名一般在最后加 er package main //计算 type calculationer interface { work(i int, j int) int } //加法结构体 type add struct { } func (c add) work(i int, j in 阅读全文
posted @ 2020-05-20 22:48
富坚老贼
阅读(140)
评论(0)
推荐(0)
摘要:
init的执行时机 导入包时前面加 _ 表示只执行包内的init函数 main包会编译成.exe 使用首字母大小写来说明包是否外部可见 阅读全文
posted @ 2020-05-20 22:45
富坚老贼
阅读(99)
评论(0)
推荐(0)
摘要:
使用go mod 代理来安装 https://goproxy.io是一个国内的代理执行 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct 重启vscode提示安装所有插件 阅读全文
posted @ 2020-05-20 09:23
富坚老贼
阅读(156)
评论(0)
推荐(0)

浙公网安备 33010602011771号