methodPinger is embedded as an interface, so the method is promoted from a field that holds it.
| 46 | |
| 47 | // methodPinger is embedded as an interface, so the method is promoted from a field that holds it. |
| 48 | type methodPinger interface{ Ping() } |
| 49 | |
| 50 | type methodEmbedsInterface struct{ methodPinger } |
| 51 |