PowerDrawer represents an electrical device that can draw power. The power source doesn't have to be a Socket.
| 16 | // PowerDrawer represents an electrical device that can draw power. |
| 17 | // The power source doesn't have to be a Socket. |
| 18 | type PowerDrawer interface { |
| 19 | Draw(power int) |
| 20 | } |
| 21 | |
| 22 | // Socket has the power! |
| 23 | type Socket struct { |