Go Modules

开启go mod

1
go env -w GO111MODULE="on"

编写测试程序

  1. 源码文件以_test结尾 : xxx_test.go
  2. 测试方法名以Test开头 :`func TestXXX(t *testing.T) {…}
End of reading! -- Thanks for your supporting