Go Common Test
January 22, 2025 · 2 min read
The test methods in Go mainly include three types: unit test, benchmark test, and example test.
...The test methods in Go mainly include three types: unit test, benchmark test, and example test.
...这篇文章完整整理自本地的 Go 语言实战入门笔记,依次练习猜数字、命令行词典和 SOCKS5 代理。保留原笔记的分步讲解、代码及外部图床图片。
...运行前注意:词典案例使用第三方接口,当前可用性及授权方式尚未验证。原笔记的浏览器令牌和 Cookie 已从代码中移除;运行前应从服务提供方取得合法凭据,并在本机环境变量
CAIYUN_DICT_TOKEN中设置,切勿将凭据提交到仓库。SOCKS5 示例没有认证,仅用于本机学习,请勿作为公网代理部署。图片链接指向原笔记的外部图床,是否可长期访问取决于图床。