Skip to content

Instantly share code, notes, and snippets.

@rafacouto
Last active November 5, 2021 18:28
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 rafacouto/a2d8b0ac0e45871f00ba6344805f8759 to your computer and use it in GitHub Desktop.
Save rafacouto/a2d8b0ac0e45871f00ba6344805f8759 to your computer and use it in GitHub Desktop.
An useful alias to check your golang module promiscuity

An useful alias to check your golang module promiscuity.

Put this line on ~/.bashrc

alias gopromiscuity='source <(go env | grep GOPATH) && echo "Your module promiscuity with golang is level $(find $GOPATH/pkg -name *.mod | wc -l)!"'

gopromiscuity demo

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