Hacker News new | ask | show | jobs
Ask HN: How to Read the Golang Documentation?
3 points by fluffystub 1806 days ago
I am learning the go language and how do i figure out what are available interfaces? Is there a guide to read the golang documentation?
2 comments

You mean like this?

https://golang.org/pkg/

Notice that when you look at, say, the `io` package and are reading the documentation for `func Copy`, that the code supplied for the functional signature links the type declarations. Just follow the links to jump to a given interface to explore.

this is a great question!

going to disappoint in saying that you can't read most online documentation cover to cover. i don't know of any that works that way. (unless it's the guide or tutorial part.)

you can use the online documentation as reference though. presumably a book or a guide has already told you about the packages/interfaces/functions/etc. you are looking for.

i have to say that go is one of the best documented language out there. "go doc" should be all one needs if we were all serious about documenting go code/libraries.