gotags icon indicating copy to clipboard operation
gotags copied to clipboard

Add exclude-private option

Open ascarter opened this issue 10 years ago • 5 comments

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.

ascarter avatar Jul 24 '15 23:07 ascarter

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.

jstemmer avatar Aug 03 '15 12:08 jstemmer

Made requested changes and squashed commits

ascarter avatar Aug 05 '15 18:08 ascarter

@jstemmer Just wanted to remind you that this is ready to go.

ascarter avatar Oct 05 '15 18:10 ascarter

@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 avatar Oct 23 '15 20:10 jstemmer

@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!

ascarter avatar Jan 21 '16 23:01 ascarter