Skip to content

Instantly share code, notes, and snippets.

@eaigner
Last active December 20, 2015 22:19
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 eaigner/6204685 to your computer and use it in GitHub Desktop.
Save eaigner/6204685 to your computer and use it in GitHub Desktop.
GoDoc Bookmarklet
javascript:(window.location.href='http://godoc.org/'+window.location.hostname+window.location.pathname)
@garyburd
Copy link

Here's a better one. It handles subdirectories and more.

 javascript:window.location='http://godoc.org/?q='+encodeURIComponent(window.location)

@eaigner
Copy link
Author

eaigner commented Aug 18, 2013

Right. Forgot about the search option.

@garyburd
Copy link

Search maps GitHub, Lauchpad, Bitbucket and Google Project Hosting URL patterns to import paths. See https://github.com/garyburd/gddo/blob/master/gddo-server/browse.go .

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