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: 1 go build && ./<executable> I don’t think this one is a good solution, so I find another one: 1 go run !(*_test).go Wow, this one is perfect!