Skip to content

Instantly share code, notes, and snippets.

@osamingo
Created October 5, 2015 09:12
Show Gist options
  • Save osamingo/7a99e75287018e93258c to your computer and use it in GitHub Desktop.
Save osamingo/7a99e75287018e93258c to your computer and use it in GitHub Desktop.
*_test.goが含まれているPackage一覧を取得する ref: http://qiita.com/osamingo/items/4151b78bcfb9d0cf9559
$ go list -f="{{if .TestGoFiles}}{{.ImportPath}}{{end}}" ./...
$ find . -maxdepth 3 -path '*_test.go' -type f | xargs -I{} dirname {} | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment