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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Things I wish someone told me when I started with Go

11 点作者 mikhaill超过 9 年前

1 comment

rtz12超过 9 年前
&gt; and that carries a MAJOR limitation, because the instance of ImplementsFooer (f) inside your function is a copy of the object you called it on. That means you cannot manipulate data-members in interface-functions, even inside your own struct.<p>You can, by doing it like this: <a href="https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;5yXfOf6Y_3" rel="nofollow">https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;5yXfOf6Y_3</a><p>EDIT: I&#x27;ll just file an issue as I doubt the OP is the author.
评论 #10389415 未加载