fix readme example
This commit is contained in:
parent
3b1c9adb6d
commit
3b78646666
|
@ -4,13 +4,10 @@ Fork of https://github.com/mattn/go-mastodon
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Client
|
```
|
||||||
|
|
||||||
```go
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
|
@ -24,7 +21,7 @@ func main() {
|
||||||
ClientSecret: "client-secret",
|
ClientSecret: "client-secret",
|
||||||
AccessToken: "accessToken",
|
AccessToken: "accessToken",
|
||||||
})
|
})
|
||||||
timeline, err := GetHomeTimeline(nil)
|
timeline, err := mastodon.GetHomeTimeline(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user