Skip to content

Instantly share code, notes, and snippets.

@timstclair
Last active July 7, 2016 23:09
Show Gist options
  • Save timstclair/c891fb8aeb24d663026371d91dcdb3fc to your computer and use it in GitHub Desktop.
Save timstclair/c891fb8aeb24d663026371d91dcdb3fc to your computer and use it in GitHub Desktop.
Godoc Bookmarklet

GoDoc Bookmarklet

A bookmarklet to navigate from a go repository (e.g. https://github.com/stretchr/testify) to the corresponding godoc page.

To install:

  1. Create a new bookmark (in Chrome, right-click bookmarks bar > Add page...)
  2. Name it anything you want (I use GoDoc)
  3. Copy the following into the URL:
javascript:(function(){
  window.location='http://godoc.org/?q='+encodeURIComponent(window.location);
})()

Test it out: https://github.com/stretchr/testify

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