随笔分类 -  golang相关学习

摘要:1.自定义域名 sudo vi /etc/hosts 增加自定义域名 zhengzhihua.mac 保存退出 测试域名 2.生成证书脚本 创建文件build_crt.sh #!/bin/bash set -x $(openssl genrsa -out rootCA.key 4096) $(ope 阅读全文
posted @ 2022-12-08 17:20 肥嘟嘟肉呼呼 阅读(37) 评论(0) 推荐(0) 编辑
摘要:使用 github.com/smartystreets/goconvey/convey 表现上会好看些,通过So验证结果 go test -bench . -benchmem -cpuprofile prof.cpu 生成文件 go tool pprof example_test.go prof.c 阅读全文
posted @ 2022-04-25 16:24 肥嘟嘟肉呼呼 阅读(30) 评论(0) 推荐(0) 编辑
摘要:go tool pprof main profilemain 代表的是二进制文件,也就是编译出来的可执行文件profile 就是上文中生成的profile,可以是cpu_profile, 也可以是mem_profile 对于cpu_profile 来说,代码开始的时候就可以开始统计了mem_prof 阅读全文
posted @ 2021-04-03 15:01 肥嘟嘟肉呼呼 阅读(763) 评论(0) 推荐(0) 编辑
摘要:学习链接 http://raylei.cn/index.php/archives/48/ 阅读全文
posted @ 2020-07-13 09:35 肥嘟嘟肉呼呼 阅读(62) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示