Created
June 27, 2017 23:07
-
-
Save campoy/d1e741e9a3cdd584e0981c551d796536 to your computer and use it in GitHub Desktop.
Find all the packages in the standard library that do not expose any symbol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for pkg in $(go list std | grep -v vendor) | |
do | |
go build $pkg && if [[ "$(go doc $pkg | grep '^func\|^var\|^type\|^const' | wc -l)" -eq "0" ]] | |
then | |
echo $pkg | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output with GOOS=darwin: