diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-12 17:55:23 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-12 17:55:23 -0500 |
commit | cc2f863c334691d4125563e0ee87bc191c190ed3 (patch) | |
tree | 3003afc16bb6571d5e47d4ffd45f180807beb7b7 /light.go | |
parent | 0a8accca16c3231095be9d80e5496d039960ba62 (diff) |
Renamed GetLight to GetLightByName and added unit tests.
Diffstat (limited to 'light.go')
-rw-r--r-- | light.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -186,7 +186,7 @@ func GetLightByIndex(bridge *Bridge, index int) (Light, error) { } // GetLight will return a light struct containing data on a given name. -func GetLight(bridge *Bridge, name string) (Light, error) { +func GetLightByName(bridge *Bridge, name string) (Light, error) { lights, _ := GetAllLights(bridge) for _, light := range lights { if light.Name == name { |