diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-07-20 17:27:16 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-07-20 17:27:16 +0530 |
commit | e9e2257133f7c8ec9e8204570f33395d74ebe175 (patch) | |
tree | 2579ccdaa7dec03d79c9cece323f6a46f43118b6 | |
parent | 017da9a33339fec2423e365c7b8c872e27b5bd21 (diff) |
-rw-r--r-- | anime/README.md | 29 | ||||
-rw-r--r-- | anime/anime.go | 4 | ||||
-rw-r--r-- | anime/anime.structs.go | 2 | ||||
-rw-r--r-- | anime/client.go | 2 | ||||
-rw-r--r-- | anime/request_handler.go | 2 | ||||
-rw-r--r-- | errhandlers/errhandlers.go | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | manga/README.md | 24 | ||||
-rw-r--r-- | manga/client.go | 2 | ||||
-rw-r--r-- | manga/manga.go | 4 | ||||
-rw-r--r-- | manga/manga.structs.go | 4 | ||||
-rw-r--r-- | manga/request_handler.go | 2 | ||||
-rw-r--r-- | user/README.md | 15 | ||||
-rw-r--r-- | user/anime/README.md | 20 | ||||
-rw-r--r-- | user/anime/animelist.go | 6 | ||||
-rw-r--r-- | user/anime/animelist.structs.go | 2 | ||||
-rw-r--r-- | user/anime/client.go | 2 | ||||
-rw-r--r-- | user/anime/request_handler.go | 2 | ||||
-rw-r--r-- | user/anime/update_animelist.go | 2 | ||||
-rw-r--r-- | user/client.go | 2 | ||||
-rw-r--r-- | user/manga/README.md | 20 | ||||
-rw-r--r-- | user/manga/client.go | 2 | ||||
-rw-r--r-- | user/manga/mangalist.go | 6 | ||||
-rw-r--r-- | user/manga/mangalist.structs.go | 2 | ||||
-rw-r--r-- | user/manga/request_handler.go | 2 | ||||
-rw-r--r-- | user/manga/update_mangalist.go | 2 | ||||
-rw-r--r-- | user/request_handler.go | 2 |
27 files changed, 29 insertions, 137 deletions
diff --git a/anime/README.md b/anime/README.md deleted file mode 100644 index 46d7c2c..0000000 --- a/anime/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# MAL2Go/anime -MAL2Go `anime` package has functionality related to getting data about anime. - -To *update* anime status (score, status, etc) refer to [`user/anime`](../user/anime) package. - -## Structure -- [anime.go](anime.go) -Contains all the exported functions for pulling data from the API. - -- [anime.structs.go](anime.structs.go) -Contains all the structs representing an anime entry on MyAnimeList. - -- [client.go](client.go) -The Client for accessing the API with this package. - -- [ranking.structs.go](ranking.structs.go) -Representing anime ranking data both in the form returned by the API and the formatted form to be returned by this package. - -- [request_handler.go](request_handler.go) -Responsible for making HTTP requests - -- [search.structs.go](search.structs.go) -Representing search results. - -- [seasonal.structs.go](seasonal.structs.go) -Representing seasonal anime list. - -- [suggestedanime.structs.go](suggestedanime.structs.go) -Representing suggested anime data. diff --git a/anime/anime.go b/anime/anime.go index 794ab19..2d87e04 100644 --- a/anime/anime.go +++ b/anime/anime.go @@ -20,8 +20,8 @@ import ( "encoding/json" "fmt" "strconv" - e "github.com/MikunoNaka/MAL2Go/v4/errhandlers" - u "github.com/MikunoNaka/MAL2Go/v4/util" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" + u "dev.vidhukant.xyz/MAL2Go/v4/util" ) const BASE_URL string = "https://api.myanimelist.net/v2/anime" diff --git a/anime/anime.structs.go b/anime/anime.structs.go index 3db166a..611bcce 100644 --- a/anime/anime.structs.go +++ b/anime/anime.structs.go @@ -17,7 +17,7 @@ package anime import ( - u "github.com/MikunoNaka/MAL2Go/v4/util" + u "dev.vidhukant.xyz/MAL2Go/v4/util" ) type AnimeStatistics struct { diff --git a/anime/client.go b/anime/client.go index aa4962f..145620d 100644 --- a/anime/client.go +++ b/anime/client.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type Client util.DefaultClient diff --git a/anime/request_handler.go b/anime/request_handler.go index 0da337e..c6fff43 100644 --- a/anime/request_handler.go +++ b/anime/request_handler.go @@ -21,7 +21,7 @@ import ( "log" "net/http" "encoding/json" - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" "errors" ) diff --git a/errhandlers/errhandlers.go b/errhandlers/errhandlers.go index ca561b6..1e4820c 100644 --- a/errhandlers/errhandlers.go +++ b/errhandlers/errhandlers.go @@ -17,7 +17,7 @@ package errhandlers import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) // this is only for anime fields @@ -1,3 +1,3 @@ -module github.com/MikunoNaka/MAL2Go/v4 +module dev.vidhukant.xyz/MAL2Go/v4 go 1.17 diff --git a/manga/README.md b/manga/README.md deleted file mode 100644 index 43c47b7..0000000 --- a/manga/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# MAL2Go/manga -MAL2Go `manga` package has functionality related to getting data about manga. - -To *update* manga status (score, status, etc) refer to [`user/manga`](../user/manga) package. - -## Structure -- [manga.go](anime.go) -Contains all the exported functions for pulling data from the API. - -- [manga.structs.go](anime.structs.go) -Contains all the structs representing a manga entry on MyAnimeList. - -- [ranking.structs.go](ranking.structs.go) -Representing anime ranking data both in the form returned -by the API and the formatted form to be returned by this package. - -- [search.structs.go](search.structs.go) -Representing search results. - -- [request_handler.go](request_handler.go) -Responsible for making HTTP requests. - -- [client.go](client.go) -The Client for accessing the API with this package. diff --git a/manga/client.go b/manga/client.go index b674854..940a9c5 100644 --- a/manga/client.go +++ b/manga/client.go @@ -17,7 +17,7 @@ package manga import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type Client util.DefaultClient diff --git a/manga/manga.go b/manga/manga.go index ff18bd7..49e3608 100644 --- a/manga/manga.go +++ b/manga/manga.go @@ -19,8 +19,8 @@ package manga import ( "encoding/json" "strconv" - e "github.com/MikunoNaka/MAL2Go/v4/errhandlers" - u "github.com/MikunoNaka/MAL2Go/v4/util" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" + u "dev.vidhukant.xyz/MAL2Go/v4/util" ) const BASE_URL string = "https://api.myanimelist.net/v2/manga" diff --git a/manga/manga.structs.go b/manga/manga.structs.go index 78a299b..c6c64a6 100644 --- a/manga/manga.structs.go +++ b/manga/manga.structs.go @@ -17,8 +17,8 @@ package manga import ( - "github.com/MikunoNaka/MAL2Go/v4/util" - a "github.com/MikunoNaka/MAL2Go/v4/anime" + "dev.vidhukant.xyz/MAL2Go/v4/util" + a "dev.vidhukant.xyz/MAL2Go/v4/anime" ) type Magazine struct { diff --git a/manga/request_handler.go b/manga/request_handler.go index 738fe91..cb813fd 100644 --- a/manga/request_handler.go +++ b/manga/request_handler.go @@ -21,7 +21,7 @@ import ( "log" "net/http" "encoding/json" - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" "errors" ) diff --git a/user/README.md b/user/README.md deleted file mode 100644 index ba76847..0000000 --- a/user/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# MAL2Go/user -MAL2Go `user` package has functionality related to getting data about the authenticated user. - -## Structure -- [user.go](user.go) -Contains all the exported functions for pulling data from the API. - -- [user.structs.go](user.structs.go) -Represents the user data returned by the API - -- [client.go](client.go) -The Client for accessing the API with this package. - -- [request_handler.go](request_handler.go) -Responsible for making HTTP requests diff --git a/user/anime/README.md b/user/anime/README.md deleted file mode 100644 index df3449f..0000000 --- a/user/anime/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# MAL2Go/user/anime -MAL2Go `user/anime` package has functionality related to updating the user's anime list. - -To *get* anime data, refer to the [`anime`](../../anime) package. - -## Structure -- [animelist.go](animelist.go) -Contains the exported functions to do some basic functions with anime lists. - -- [animelist.structs.go](animelist.structs.go) -Contains all the structs representing animelist data pulled from MyAnimeList. - -- [client.go](client.go) -The Client for accessing the API with this package. - -- [request_handler.go](request_handler.go) -Responsible for making HTTP requests - -- [update_animelist.go](update_animelist.go) -Contains all the exported functions to update an anime entry in user's animelist. diff --git a/user/anime/animelist.go b/user/anime/animelist.go index 3ed101e..c876943 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/v4/anime" - e "github.com/MikunoNaka/MAL2Go/v4/errhandlers" - u "github.com/MikunoNaka/MAL2Go/v4/util" + a "dev.vidhukant.xyz/MAL2Go/v4/anime" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" + u "dev.vidhukant.xyz/MAL2Go/v4/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 6f2417b..de7c4c9 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/v4/anime" + "dev.vidhukant.xyz/MAL2Go/v4/anime" ) type animeListRaw struct { diff --git a/user/anime/client.go b/user/anime/client.go index aa4962f..145620d 100644 --- a/user/anime/client.go +++ b/user/anime/client.go @@ -17,7 +17,7 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type Client util.DefaultClient diff --git a/user/anime/request_handler.go b/user/anime/request_handler.go index 9ca1cb4..4b9232a 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/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type UpdateResponse struct { diff --git a/user/anime/update_animelist.go b/user/anime/update_animelist.go index dfec5e7..bf57883 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/v4/errhandlers" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" "fmt" "net/url" "strconv" diff --git a/user/client.go b/user/client.go index 3681640..60aa969 100644 --- a/user/client.go +++ b/user/client.go @@ -17,7 +17,7 @@ package user import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type Client util.DefaultClient diff --git a/user/manga/README.md b/user/manga/README.md deleted file mode 100644 index cc93d9a..0000000 --- a/user/manga/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# MAL2Go/user/manga -MAL2Go `user/manga` package has functionality related to updating the user's manga list. - -To *get* manga data, refer to the [`manga`](../../manga) package. - -## Structure -- [mangalist.go](mangalist.go) -Contains the exported functions to do some basic functions with manga lists. - -- [mangalist.structs.go](mangalist.structs.go) -Contains all the structs representing mangalist data pulled from MyAnimeList. - -- [client.go](client.go) -The Client for accessing the API with this package. - -- [request_handler.go](request_handler.go) -Responsible for making HTTP requests - -- [update_mangalist.go](update_mangalist.go) -Contains all the exported functions to update a manga entry in user's mangalist. diff --git a/user/manga/client.go b/user/manga/client.go index b674854..940a9c5 100644 --- a/user/manga/client.go +++ b/user/manga/client.go @@ -17,7 +17,7 @@ package manga import ( - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type Client util.DefaultClient diff --git a/user/manga/mangalist.go b/user/manga/mangalist.go index 91531b8..226849b 100644 --- a/user/manga/mangalist.go +++ b/user/manga/mangalist.go @@ -20,9 +20,9 @@ import ( "encoding/json" "strconv" "fmt" - e "github.com/MikunoNaka/MAL2Go/v4/errhandlers" - u "github.com/MikunoNaka/MAL2Go/v4/util" - m "github.com/MikunoNaka/MAL2Go/v4/manga" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" + u "dev.vidhukant.xyz/MAL2Go/v4/util" + m "dev.vidhukant.xyz/MAL2Go/v4/manga" ) const BASE_URL string = "https://api.myanimelist.net/v2" diff --git a/user/manga/mangalist.structs.go b/user/manga/mangalist.structs.go index f7cf97d..b773b17 100644 --- a/user/manga/mangalist.structs.go +++ b/user/manga/mangalist.structs.go @@ -17,7 +17,7 @@ package manga import ( - "github.com/MikunoNaka/MAL2Go/v4/manga" + "dev.vidhukant.xyz/MAL2Go/v4/manga" ) type mangaListRaw struct { diff --git a/user/manga/request_handler.go b/user/manga/request_handler.go index be7ff17..72cd906 100644 --- a/user/manga/request_handler.go +++ b/user/manga/request_handler.go @@ -24,7 +24,7 @@ import ( "strconv" "strings" "errors" - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" ) type UpdateResponse struct { diff --git a/user/manga/update_mangalist.go b/user/manga/update_mangalist.go index 5dda7b4..bf02d6d 100644 --- a/user/manga/update_mangalist.go +++ b/user/manga/update_mangalist.go @@ -16,7 +16,7 @@ package manga import ( - e "github.com/MikunoNaka/MAL2Go/v4/errhandlers" + e "dev.vidhukant.xyz/MAL2Go/v4/errhandlers" "fmt" "net/url" "strconv" diff --git a/user/request_handler.go b/user/request_handler.go index 4571b0b..5455940 100644 --- a/user/request_handler.go +++ b/user/request_handler.go @@ -20,7 +20,7 @@ import ( "io/ioutil" "log" "net/http" - "github.com/MikunoNaka/MAL2Go/v4/util" + "dev.vidhukant.xyz/MAL2Go/v4/util" "errors" "encoding/json" ) |