Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created October 30, 2018 19:37
Show Gist options
  • Save zulhfreelancer/cffd1d10c95e60e2c318c585b7e38e1b to your computer and use it in GitHub Desktop.
Save zulhfreelancer/cffd1d10c95e60e2c318c585b7e38e1b to your computer and use it in GitHub Desktop.
Run all Go files except tests

Run all Go files except tests

$ go run $(ls -1 *.go | grep -v _test.go)

OR

$ go run !(*_test).go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment