TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to Read the Golang Documentation?

3 点作者 fluffystub将近 4 年前
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 条评论

IggleSniggle将近 4 年前
You mean like this?<p><a href="https:&#x2F;&#x2F;golang.org&#x2F;pkg&#x2F;" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;pkg&#x2F;</a><p>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.
blondin将近 4 年前
this is a great question!<p>going to disappoint in saying that you can&#x27;t read most online documentation cover to cover. i don&#x27;t know of any that works that way. (unless it&#x27;s the guide or tutorial part.)<p>you can use the online documentation as reference though. presumably a book or a guide has already told you about the packages&#x2F;interfaces&#x2F;functions&#x2F;etc. you are looking for.<p>i have to say that go is one of the best documented language out there. &quot;go doc&quot; should be all one needs if we were all serious about documenting go code&#x2F;libraries.