From 0c369e01d7da80edc0d1e296fde6336cf3de17df Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 29 Jun 2022 22:58:14 +0530 Subject: ACTUALLY fixed all bad imports importing older version --- user/anime/README.md | 4 ++-- user/anime/animelist.go | 6 +++--- user/anime/animelist.structs.go | 2 +- user/anime/client.go | 2 +- user/anime/request_handler.go | 2 +- user/anime/update_animelist.go | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'user/anime') diff --git a/user/anime/README.md b/user/anime/README.md index 80ce4e6..4b8bfe8 100644 --- a/user/anime/README.md +++ b/user/anime/README.md @@ -8,14 +8,14 @@ To *get* anime data, refer to the [`anime`](../../anime) package. ## Installation In a terminal, run ``` fish -go get "github.com/MikunoNaka/MAL2Go/user/anime" +go get "github.com/MikunoNaka/MAL2Go/v2/user/anime" ``` ## Usage Firstly, import this package and instanciate the client. ``` go import ( - "github.com/MikunoNaka/MAL2Go/user/anime" + "github.com/MikunoNaka/MAL2Go/v2/user/anime" ) ``` diff --git a/user/anime/animelist.go b/user/anime/animelist.go index 321e6d0..d7a5b41 100644 --- a/user/anime/animelist.go +++ b/user/anime/animelist.go @@ -20,9 +20,9 @@ import ( "encoding/json" "strconv" "fmt" - a "github.com/MikunoNaka/MAL2Go/anime" - e "github.com/MikunoNaka/MAL2Go/errhandlers" - u "github.com/MikunoNaka/MAL2Go/util" + a "github.com/MikunoNaka/MAL2Go/v2/anime" + e "github.com/MikunoNaka/MAL2Go/v2/errhandlers" + u "github.com/MikunoNaka/MAL2Go/v2/util" ) const BASE_URL string = "https://api.myanimelist.net/v2" diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index c727d97..9f83f82 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/anime" + "github.com/MikunoNaka/MAL2Go/v2/anime" ) type animeListRaw struct { diff --git a/user/anime/client.go b/user/anime/client.go index e857df2..090571b 100644 --- a/user/anime/client.go +++ b/user/anime/client.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/util" + "github.com/MikunoNaka/MAL2Go/v2/util" ) type Client util.DefaultClient diff --git a/user/anime/request_handler.go b/user/anime/request_handler.go index 45bfe83..f2f6707 100644 --- a/user/anime/request_handler.go +++ b/user/anime/request_handler.go @@ -24,7 +24,7 @@ import ( "strconv" "strings" "errors" - "github.com/MikunoNaka/MAL2Go/util" + "github.com/MikunoNaka/MAL2Go/v2/util" ) type UpdateResponse struct { diff --git a/user/anime/update_animelist.go b/user/anime/update_animelist.go index ec0d60d..d8c936a 100644 --- a/user/anime/update_animelist.go +++ b/user/anime/update_animelist.go @@ -16,7 +16,7 @@ package anime import ( - e "github.com/MikunoNaka/MAL2Go/errhandlers" + e "github.com/MikunoNaka/MAL2Go/v2/errhandlers" "fmt" "net/url" "strconv" -- cgit v1.2.3