timelines.go
changeset 138 23d3a518d0ad
parent 130 c450bb73f59a
child 149 5f922977d7c7
--- a/timelines.go	Wed Apr 19 09:30:47 2017 +0200
+++ b/timelines.go	Wed Apr 19 10:43:38 2017 +0200
@@ -4,7 +4,7 @@
 Licensed under the MIT license.  Please see the LICENSE file is this directory.
 */
 
-package gondole
+package madon
 
 import (
 	"fmt"
@@ -17,7 +17,7 @@
 // timeline can be "home", "public", or a hashtag (use ":hashtag" or "#hashtag")
 // For the public timelines, you can set 'local' to true to get only the
 // local instance.
-func (g *Client) GetTimelines(timeline string, local bool) ([]Status, error) {
+func (mc *Client) GetTimelines(timeline string, local bool) ([]Status, error) {
 	var endPoint string
 
 	switch {
@@ -39,7 +39,7 @@
 	}
 
 	var tl []Status
-	if err := g.apiCall(endPoint, rest.Get, params, &tl); err != nil {
+	if err := mc.apiCall(endPoint, rest.Get, params, &tl); err != nil {
 		return nil, err
 	}
 	return tl, nil