1.4 使用 Gomock 进行单元测试
在实际项目中,需要进行单元测试的时候。却往往发现有一大堆依赖项。这时候就是 [Gomock](https://github.com/golang/mock) 大显身手的时候了
1390 字
|
7 分钟
Cover Image of the Post
干货满满的 Go Modules 和 goproxy.cn
大家好,我是一只普通的煎鱼,周四晚上很有幸邀请到 goproxy.cn 的作者 @盛傲飞(@aofei) 到 Go 夜读给我们进行第 61 期 《Go Modules、Go Module Proxy 和 goproxy.cn》的技术分享。
6428 字
|
32 分钟
Cover Image of the Post
1.9 我要在栈上。不,你应该在堆上
![image](https://i.imgur.com/ixyP3XP.jpg)
1952 字
|
10 分钟
Cover Image of the Post
1.11 从实践到原理,带你参透 gRPC
![image](https://i.imgur.com/cjLNsWj.png)
4334 字
|
22 分钟
Cover Image of the Post
Go 应用内存占用太多,让排查?(VSZ篇)
前段时间,某同学说某服务的容器因为超出内存限制,不断地重启,问我们是不是有内存泄露,赶紧排查,然后解决掉,省的出问题。我们大为震惊,赶紧查看监控+报警系统和性能分析,发现应用指标压根就不高,不像有泄露的样子。
4330 字
|
22 分钟
Cover Image of the Post
2.1 Go依赖管理工具dep
>Go dependency management tool
351 字
|
2 分钟
Cover Image of the Post
2.2 如此,用dep获取私有库
dep是一个依赖管理工具。它需要1.9或更新的Golang版本才能编译
445 字
|
2 分钟
Cover Image of the Post
Go 介绍与环境安装
项目地址:https://github.com/EDDYCJY/go-gin-example
2971 字
|
15 分钟