Closed theckman closed 9 years ago
Consider the following code:
for _, bulb := range c.GetBulbs() { fmt.Printf("bulb: %v\n", bulb) }
Previously, you'd see memory addresses which were less than helpful. With this patch, you see the name of the bulb as provided by the GetLabel() method.
GetLabel()
Looks like a good addition, really need to remember to do that more.
Thanks!
Consider the following code:
Previously, you'd see memory addresses which were less than helpful. With this patch, you see the name of the bulb as provided by the
GetLabel()
method.