It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things

摘要: golang编译方式一般分为两种,一种是源码编译,另外一个是交叉编译 1.源码编译 这种方式需要在机器上安装相应的go sdk,可以参考环境部署相关的文章,这里不再叙述;我们只需要把项目代码copy到相应的机器上,然后再项目目录中,执行命令:go build ./main.go -o outdir, 阅读全文
posted @ 2020-04-30 16:04 gbat 阅读(12417) 评论(2) 推荐(0) 编辑
摘要: 前言 每种语言都有自己的测试姿势,golang的作者提供了一个testing的包来供大家完成测试之旅,简单好用,一起走一波。 10s后以下知识点即将靠近:1.为什么需要测试?2.Golang的测试规矩3.功能测试4.压力测试5.测试代码的覆盖率测试6.测试所有的参数备忘 正文 1.为什么需要测试? 阅读全文
posted @ 2020-04-30 15:54 gbat 阅读(517) 评论(0) 推荐(0) 编辑

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things