You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example should be pretty self-explanatory: http://play.golang.org/p/u5_eyPkjNs
Happens on go1.1 installed via gvm on Ubuntu 12.04 as well as on play.golang.org
The text was updated successfully, but these errors were encountered:
I might be wrong, but for me it looks different:
The other issues are about recursively calling String() (via Printf) from String().
In this issue there is no recursion within the my code as far as I see it.
frobnitz from #go-nuts on freenode came up with a even simpler example:
http://play.golang.org/p/ghjEf5kfAG
In the http://play.golang.org/p/**ghjEf5kfAG<http://play.golang.org/p/ghjEf5kfAG>;
example,
the struct member exists (is non-nil): it is set at line 13. The definition
of embedding is that MyDoer automatically gets a method like
func (d *MyDoer) Do() {
d.Doer.Do()
}
and when you call d.Do, it calls d.Doer.Do, and since d.Doer == d, that
calls d.Do, etc.
Russ
by [email protected]:
The text was updated successfully, but these errors were encountered: