摘要:
testing模块 测试代码放在当前包以_test.go结尾的文件中 测试函数以Test为名称前缀 测试命令(go test) 正常编译操作(go build/install)会忽略测试文件 单例模式举例 singleton.go singleton_test.go 终端执行go test,会执行s 阅读全文
posted @ 2018-08-23 11:01
hongpeng0209
阅读(265)
评论(0)
推荐(0)
摘要:
panic、recover 阅读全文
posted @ 2018-08-23 10:50
hongpeng0209
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号