From 6e68962ef6e0033c0545209bb05ccb9ce20c9d3b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 28 Feb 2020 03:01:37 +0100 Subject: [PATCH] Add godoc comments --- accounts/mastodon/mastodon.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accounts/mastodon/mastodon.go b/accounts/mastodon/mastodon.go index a69422c..ac3614b 100644 --- a/accounts/mastodon/mastodon.go +++ b/accounts/mastodon/mastodon.go @@ -145,6 +145,7 @@ func (mod *Account) Run(eventChan chan interface{}) error { return nil } +// Panes returns the panes this Mastodon account offers func (mod *Account) Panes() []accounts.Pane { ll, err := mod.client.GetLists(context.Background()) if err != nil { @@ -198,6 +199,7 @@ func (mod *Account) Reply(replyid string, message string, attachments []string) return err } +// UploadAttachment uploads an attachment to Mastodon func (mod *Account) UploadAttachment(url string) { go func() { a, err := mod.client.UploadMedia(context.Background(), url)