Can embedded struct method have knowledge of parent/child?
问题 I have been working with Go on and off on my free time for a few months and I feel I\'ve been getting a hang of it. Coming from traditional OOP languages, such as Java and PHP, I had a hard time grasping composition and embedding in Go. I think it finally clicked recently and want to use it more, but I have hit a roadblock for one idea I have. Lets say I have a struct from a package that has a Validate method and I embedded that in my struct in the package I am currently working in. Is there