Skip to content

Instantly share code, notes, and snippets.

@eaigner
Last active December 20, 2015 22:19
Show Gist options
  • Select an option

  • Save eaigner/6204685 to your computer and use it in GitHub Desktop.

Select an option

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)
Copy link

ghost commented Aug 13, 2013

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.

Copy link

ghost commented Aug 19, 2013

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