摘要: 安装go之后, 1.设置环境变量 GOROOT,GOPATH 2.goland配置 配置GOPATH GO Modules GOPROXY=https://goproxy.io,direct 设置自动代码格式化与代码检查: 点击 settings > Tools > File Watchers 新增 阅读全文
posted @ 2022-04-19 15:58 X-Wolf 阅读(875) 评论(0) 推荐(0)
摘要: 01 介绍 我们使用 Golang 语言开发的项目,怎么保证逻辑正确和性能要求呢?也就是说我们如何测试我们的 Golang 代码呢?在 Golang 语言中,可以使用标准库 testing 包编写单元测试和基准测试,使用 go test 命令执行单元测试和基准测试的代码。本文我们介绍在 Golang 阅读全文
posted @ 2022-04-19 14:30 X-Wolf 阅读(1594) 评论(0) 推荐(0)
摘要: 官网:ini.unknwon.io/docs github:https://github.com/go-ini/ini ini 是 Windows 上常用的配置文件格式。MySQL 的 Windows 版就是使用 ini 格式存储配置的。 go-ini是 Go 语言中用于操作 ini 文件的第三方库 阅读全文
posted @ 2022-04-19 10:31 X-Wolf 阅读(2311) 评论(0) 推荐(0)