Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Create a list of build tags with known special meanings #463
While the course for #291 isn't yet decided, it seems quite likely that we're going to need a list of the build tags (not OS/Arch) that have a generally well-understood public definition. I think the canonical example of this would either be
Please provide a build tag and a brief description of its use, similar to the following:
I had some free quota left, ran some queries against the github corpus, extracted all the lines looking like "// +build", split the line at blanks, grouped and counted. This is the result:
@mem that's awesome, thank you!
OK so, filtering out the os, arch, and go version tags, here's a sampling of a few that show up high on the list:
I'm not sure exactly what I want to do with these yet, but I'm putting them in as a comment here just to record the bit of musing I've done already.
(Obligatory note - this is frequency of appearance of these tags, but information about how frequently these packages are imported is not incorporated. That is, naturally, a relevant metric for our purposes.)