On 23 Sep 2017, at 15:27, Chris Polderman <chris.polder...@gmail.com> wrote: > > func (hue *HueBridge) pollSensors(sensors *sensors.Sensors) { > var previousSensorInfo map[int]sensors.Sensor = > make(map[int]sensors.Sensor)
In your function declaration, you're declaring a parameter "sensors" of the type *sensors.Sensors. This shadows the *package* also called "sensors" inside the function. //jb -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.