Go package docs as PDF

1,611 views
Skip to first unread message

si guy

unread,
May 3, 2012, 11:29:01 PM5/3/12
to golan...@googlegroups.com
Hi all, does anyone have a link to a PDF of the entire golang package documentation? Or perhaps a link to a PDF generator that will do it automatically?

-Thanks

Message has been deleted

si guy

unread,
May 3, 2012, 11:40:19 PM5/3/12
to golan...@googlegroups.com
Close enough! Just needed it for a long flight.

I'll probably end up writing a good godoc->PDF when I get back.

Thanks
-Simon Watt

minux

unread,
May 4, 2012, 3:15:24 AM5/4/12
to si guy, golan...@googlegroups.com
On Fri, May 4, 2012 at 11:40 AM, si guy <sjw...@gmail.com> wrote:
Close enough! Just needed it for a long flight.
One of the motivation for my iOS port is that I want to read Go documentation offline
on iPad.

Russ Cox

unread,
May 7, 2012, 6:11:02 PM5/7/12
to Peter Thrun, golan...@googlegroups.com
On Thu, May 3, 2012 at 11:36 PM, Peter Thrun <peter...@ymail.com> wrote:
> There's a PDF from
> January: https://groups.google.com/d/topic/golang-dev/sdH_jeB4tPw/discussion

Deleted, thanks for the reminder.
That PDF is very old. Many things changed between then and Go 1.

Russ

weston...@gmail.com

unread,
Mar 22, 2014, 4:20:00 AM3/22/14
to golan...@googlegroups.com
Any updates on this? I'd like a PDF generator to same.

Andrew Gallant

unread,
Mar 22, 2014, 1:08:43 PM3/22/14
to golan...@googlegroups.com
You could use `godoc -html` with existing tools that convert HTML to PDF. e.g., with pandoc:

godoc -html encoding | pandoc -f html -t latex --latex-engine=xelatex - -o encoding.pdf

Or with wkhtmltopdf:

godoc -html encoding | wkhtmltopdf - encoding.pdf

The output isn't perfect and perhaps there are other tools that will do a better job.
Reply all
Reply to author
Forward
0 new messages