Godoc.org support plain-text for integration, why not JSON or XML, that sound a better format for that kind of work.
I see you are using two version of template, one for HTML and one for TXT, so I think I not to hard for a json version.
One more thing:
Instead of using a reuqest header, why not just a parameter?
For example: http://godoc.org/math?format=json/xml/txt/html
Thanks for your great project
I want to add tab completion to the go get command and want to use godoc.org to build the local index. I'd prefer not to scrape, so a json api would be nice. Let me know if I should open a new issue.