aboutsummaryrefslogtreecommitdiff
path: root/group.go
diff options
context:
space:
mode:
authorrealytcracker <rapper@gmail.com>2017-03-07 00:09:47 -0800
committerrealytcracker <rapper@gmail.com>2017-03-07 00:09:47 -0800
commita3e8f9695526b98a9317544d544c970ce5079d17 (patch)
tree8087b7a6ebba927e70c5b10b96ffb883eb30a322 /group.go
parent635cab95696cf0b8d77ff0d621f5e1daf6412de7 (diff)
cleaned godoc format, returned else blocks
Diffstat (limited to 'group.go')
-rw-r--r--group.go4
1 files changed, 2 insertions, 2 deletions
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)