From a3e8f9695526b98a9317544d544c970ce5079d17 Mon Sep 17 00:00:00 2001 From: realytcracker Date: Tue, 7 Mar 2017 00:09:47 -0800 Subject: cleaned godoc format, returned else blocks --- group.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'group.go') diff --git a/group.go b/group.go index c842a5a..f85294e 100644 --- a/group.go +++ b/group.go @@ -35,7 +35,7 @@ type Group struct { Type string `json:"type"` } -// Bridge.GetGroups gets the attributes for each group of lights. +// GetGroups gets the attributes for each group of lights. // TODO: NOT TESTED, NOT FULLY IMPLEMENTED func (bridge *Bridge) GetGroups() ([]Group, error) { uri := fmt.Sprintf("/api/%s/groups", bridge.Username) @@ -56,7 +56,7 @@ func (bridge *Bridge) GetGroups() ([]Group, error) { return []Group{}, nil } -// Bridge.SetGroupState sends an action to group +// SetGroupState sends an action to group func (bridge *Bridge) SetGroupState(group int, action *Action) error { uri := fmt.Sprintf("/api/%s/groups/%d/action", bridge.Username, group) _, _, err := bridge.Put(uri, action) -- cgit v1.2.3