2 Plain Text Interface
Nodir Turakulov edited this page 2015-10-10 01:33:06 -07:00

GoDoc provides plain text output for integration with shell scripts. Use the HTTP Accept header to request a plain text response.

Search for packages with the term 'sql':

$ curl -H 'Accept: text/plain' https://godoc.org/?q=sql

Get the documentation for the standard math package:

$ curl -H 'Accept: text/plain' https://godoc.org/math