GO run multiple files without test
文章目录
I am writing a project which has multiple files in the main package, after run go run *.go, I get this assert:
go run: cannot run *_test.go files
(shortener_test.go)
WTF?! So I search Google and get this suggestion:
| |
I don’t think this one is a good solution, so I find another one:
| |
Wow, this one is perfect!
文章作者 疯魔慕薇
上次更新 2017-08-31