From 3b78646666ef6309bc9726d627a86077467c1176 Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 21 Nov 2022 12:58:15 +0100 Subject: [PATCH] fix readme example --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 97beccb..1a490a6 100644 --- a/README.md +++ b/README.md @@ -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) }