[–] rtz12 10y ago ↗ > 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.You can, by doing it like this: https://play.golang.org/p/5yXfOf6Y_3EDIT: I'll just file an issue as I doubt the OP is the author. [–] danieltmiles 10y ago ↗ @rtz12: This is excellent, thank you so much! I'll make the edit. :)EDIT: (ps, I'm the author)
[–] danieltmiles 10y ago ↗ @rtz12: This is excellent, thank you so much! I'll make the edit. :)EDIT: (ps, I'm the author)
2 comments
[ 2.7 ms ] story [ 14.9 ms ] threadYou can, by doing it like this: https://play.golang.org/p/5yXfOf6Y_3
EDIT: I'll just file an issue as I doubt the OP is the author.
EDIT: (ps, I'm the author)