From cc2f863c334691d4125563e0ee87bc191c190ed3 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Fri, 12 Feb 2016 17:55:23 -0500 Subject: Renamed GetLight to GetLightByName and added unit tests. --- light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'light.go') diff --git a/light.go b/light.go index e3fe2a5..e2c7522 100644 --- a/light.go +++ b/light.go @@ -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 { -- cgit v1.2.3