Skip to content

Instantly share code, notes, and snippets.

@thehowl
Last active March 13, 2016 08:39
Show Gist options
  • Select an option

  • Save thehowl/4353afc4aecc5dfa0a05 to your computer and use it in GitHub Desktop.

Select an option

Save thehowl/4353afc4aecc5dfa0a05 to your computer and use it in GitHub Desktop.
ggd - a way to easily get docs about a go package
#!/usr/bin/env bash
if [ -z ${1+x} ]; then
echo 'Usage:'
echo ' ggd [go package]'
exit 0
fi
xdg-open https://godoc.org/"$1" > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment