TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Things I wish someone told me when I started with Go

11 pointsby mikhaillover 9 years ago

1 comment

rtz12over 9 years ago
&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 未加载