Add exclude-private option
Added flag -exclude-private to chose to filter any symbols that are not public when building the tag file. This is very useful for building a tag file for the Go standard library or a third party API.
Instead of checking p.excludeTag everywhere, you could replace all the p.tags = append(p.tags, tag) instances with a function p.add(tag) that adds a tag to the tags slice when it shouldn't be excluded.
Made requested changes and squashed commits
@jstemmer Just wanted to remind you that this is ready to go.
@ascarter a quick update: I'm in the middle of changing jobs (and moving to another country), so I haven't had time to check on my github projects. I should have a laptop and some time soon. I appreciate the time and effort you put into these PR's, sorry to keep you waiting.
@jstemmer - any chance you might be able to merge the two pending PR's I submitted? Would love to have this in there instead of managing my own fork.
Thanks!