# go-learn **Repository Path**: wssjdi/go-learn ## Basic Information - **Project Name**: go-learn - **Description**: go学习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: go-learn-v0.0.1 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-09 - **Last Updated**: 2025-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Go-Learn Go语言学习的时候一些笔记或实例 ## 项目主要依赖版本 - Go@v1.16: Just Go ## 更新日志 ### 当前版本 V0.0.1 ### 历史版本
版本更新内容
版本号更新日期更新内容作者备注
V0.0.12021-10-27Go语言学习的时候一些笔记或实例dqc13215项目初始化
## 项目构建 不需要构建运行 ## 项目启动 ## 安装go tools 使用如下命令安装go tools: ```shell go install golang.org/x/tools/...@latest ``` 执行完成改命令之后会安装如下一系列的开发工具: ![go tools开发工具](./doc/images/go-tools-list.png) 例如可以使用 `godoc -http=:6060` 命令开启一个Web服务,使用浏览器访问 `http://localhost:6060/pkg` 可以离线访问 `go` 的api文档. ## 压测工具 一个好用的Http压测工具 ```command hey -n 2000 -c 1000 -m POST -H "Content-Type: application/json" -z 5m -h2 -d "{\"body\":{\"queryList\":[{\"departure\":\"\",\"key\":\"4\",\"limitPrice\":\"12.5\",\"project\":\"701\"},{\"departure\":\"\" ,\"key\":\"3\",\"limitPrice\":\"21\",\"project\":\"701\"},{\"departure\":\"\",\"key\":\"10.0\",\"limitPrice\":\"12.5\",\"project\":\"701\"}]},\"clientInfo\":{\"clientIp\":\"192.168.2.22\",\"deviceId\":\"94BB1674-995B-446E-926F-955E8 61021E1\",\"extend\":\"2^com.domain,4^9.3,5^iPhone8_1\",\"macAddress\":\"AD259D9A-F9B7-4FAF-B6B4-3152E5D6689D\",\"networkType\":\"2G\",\"platId\":11,\"pushInfo\":\"\",\"refId\":\"94955307\",\"versionNumber\":\"2.4.1\", \"versionType\":\"1\"},\"header\":{\"accountID\":\"d4a45219-f2f2-4a2a-ab7b-007ee848629d\",\"serviceName\":\"getcouponpackbatch\"}}" http://domain.service.provider/gateway/cashcoupon/api/getonsalecouponpackbatch ``` ## 参考资料 - [Go语言中文网](https://books.studygolang.com/) - [Go 编程基础(视频)](https://github.com/unknwon/go-fundamental-programming) - [Go 新手入门](https://github.com/xinliangnote/Go?utm_source=gold_browser_extension) - [Go 语言简明教程](https://geektutu.com/post/quick-golang.html) - [通过测试学习 Go 语言](https://books.studygolang.com/learn-go-with-tests/) - [Go by Example 中文](https://books.studygolang.com/gobyexample/) - [Go 语言高性能编程(一些实际操作技巧)](https://geektutu.com/post/high-performance-go.html) - [The Way To Go 中文版](https://github.com/Unknwon/the-way-to-go_ZH_CN) - [Go 标准命令详解](https://www.kancloud.cn/cattong/go_command_tutorial/261346) - [跟煎鱼学 Go](https://eddycjy.com/go-categories/) - [煎鱼的Blog](https://github.com/eddycjy/blog) - [Go 学习路线图(GitHub)](https://github.com/yongxinz/gopher) - [Go 学习路线图(掘金)](https://juejin.cn/post/7061980386640789540?utm_source=gold_browser_extension) - [Mastering GO(中文译本)](https://github.com/hantmac/Mastering_Go_ZH_CN) - [Mastering GO(第二版)](https://github.com/hantmac/Mastering_Go_Second_Edition_Zh_CN) - [LeetCode-Go(2084题)](https://github.com/halfrost/LeetCode-Go) - [LeetCode Cookbook](https://books.halfrost.com/leetcode/) - [LeetCode Go(100题)](https://github.com/bigcaoyuan/leetcode) - [LeetCode 多种语言](https://github.com/doocs/leetcode) - [经典面试题一](https://github.com/lifei6671/interview-go.git) - [优雅的冥等补偿算法 Backoff](https://github.com/cenkalti/backoff)