import cycle not allowed in test
写个 sdk 的测试时报错 import cycle not allowed in test
后发现因为测试文件内多写了导入同包路径.
同
package
下的 xxx_test.go 内不需要额外import
.
[支持/订阅](https://afdian.com/a/taadis)作者,以获得更多服务.
写个 sdk 的测试时报错 import cycle not allowed in test
后发现因为测试文件内多写了导入同包路径.
同
package
下的 xxx_test.go 内不需要额外import
.
扫码关注我