Skip to content

Instantly share code, notes, and snippets.

@euank
Last active July 27, 2017 19:05
Show Gist options
  • Save euank/56f708d710e5b19e12a48b0276dc851d to your computer and use it in GitHub Desktop.
Save euank/56f708d710e5b19e12a48b0276dc851d to your computer and use it in GitHub Desktop.
$ git checkout v1.7.1
$ echo "/vendor" > .ignore
$ rg '^//.*\+.*build' --no-filename -N | sort | uniq -c | sort -nr
211 // +build !ignore_autogenerated
44 // +build linux
23 // +build !linux
12 // +build windows
5 // +build !windows
5 // +build !linux,!windows
5 // +build cgo,linux
2 // +build !windows,!plan9,!solaris
2 // +build solaris
2 // +build !race
2 // +build go1.8
1 // +build !linux,!windows linux,!cgo
1 // +build linux darwin freebsd openbsd netbsd dragonfly
1 // +build !linux,!darwin,!freebsd,!openbsd,!netbsd,!dragonfly
1 // +build linux darwin
1 // +build !linux,!darwin
1 // +build !linux !cgo
1 // +build !cgo !linux
1 // +build cgo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment