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)

ghost commented Aug 13, 2013

Copy link
Copy Markdown

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

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

@eaigner

eaigner commented Aug 18, 2013

Copy link
Copy Markdown
Author

Right. Forgot about the search option.

ghost commented Aug 19, 2013

Copy link
Copy Markdown

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