Skip to content

Instantly share code, notes, and snippets.

@campoy
Created June 27, 2017 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campoy/d1e741e9a3cdd584e0981c551d796536 to your computer and use it in GitHub Desktop.
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
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
@campoy
Copy link
Author

campoy commented Jun 27, 2017

Output with GOOS=darwin:

internal/syscall/windows
internal/syscall/windows/registry
runtime/cgo
runtime/race

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment