fix readme example

This commit is contained in:
gutmet 2022-11-21 12:58:15 +01:00
parent 3b1c9adb6d
commit 3b78646666

View File

@ -4,13 +4,10 @@ Fork of https://github.com/mattn/go-mastodon
## Usage
### Client
```go
```
package main
import (
"context"
"fmt"
"log"
@ -24,7 +21,7 @@ func main() {
ClientSecret: "client-secret",
AccessToken: "accessToken",
})
timeline, err := GetHomeTimeline(nil)
timeline, err := mastodon.GetHomeTimeline(nil)
if err != nil {
log.Fatal(err)
}