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
I am reading the Effective go book. I thing I found a typo. In the following paragraph:
Embedding types introduces the problem of name conflicts but the rules to resolve them are simple. First, a field or method X hides any other item X in a more deeply nested part of the type. If log.Logger contained a field or method called Command, the Command field of Job would dominate it.
log.Logger must be replaced with job.Logger, I guess.
The text was updated successfully, but these errors were encountered:
Thanks, but the text is correct as written. It's saying that when you embed log.Logger in job.Logger, the fields of job.Logger hide the fields of log.Logger.
I am reading the Effective go book. I thing I found a typo. In the following paragraph:
log.Logger
must be replaced withjob.Logger
, I guess.The text was updated successfully, but these errors were encountered: