Add godoc comments

This commit is contained in:
Christian Muehlhaeuser 2020-02-28 03:01:37 +01:00
parent d4b0e90a87
commit 6e68962ef6
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -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)