1.main.go文件 2.main_test.go 文件(windows7环境) 执行结果如下 总结: 个人学习go 测试学习示例,不适用于项目 转载于:https://www.cnblogs.com/wpgraceii/p/10436104.html