diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
commit | fff3dadabc321871e6819392efc605c6dffe2e69 (patch) | |
tree | 25aceed23b73b2ad975a06d73fad091d0886a2a6 /util | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'util')
-rw-r--r-- | util/print_anime.go | 4 | ||||
-rw-r--r-- | util/print_manga.go | 4 | ||||
-rw-r--r-- | util/season.go | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/util/print_anime.go b/util/print_anime.go index d3d3756..7266d93 100644 --- a/util/print_anime.go +++ b/util/print_anime.go @@ -20,11 +20,11 @@ package util import ( "fmt" - a "github.com/MikunoNaka/MAL2Go/v4/anime" + "vidhukant.com/mg" ) // formats and prints all the details about an anime -func PrintAnime(anime a.Anime) { +func PrintAnime(anime mg.Anime) { fmt.Println(anime.Id) fmt.Println(anime.Title) } diff --git a/util/print_manga.go b/util/print_manga.go index 76c3c31..3c8981f 100644 --- a/util/print_manga.go +++ b/util/print_manga.go @@ -20,11 +20,11 @@ package util import ( "fmt" - m "github.com/MikunoNaka/MAL2Go/v4/manga" + "vidhukant.com/mg" ) // formats and prints all the details about a manga -func PrintManga(manga m.Manga) { +func PrintManga(manga mg.Manga) { fmt.Println(manga.Id) fmt.Println(manga.Title) } diff --git a/util/season.go b/util/season.go index 62645bf..96f7e70 100644 --- a/util/season.go +++ b/util/season.go @@ -21,11 +21,11 @@ package util import ( "time" "strconv" - a "github.com/MikunoNaka/MAL2Go/v4/anime" + "vidhukant.com/mg" ) -func GetCurrentSeason() a.Season { +func GetCurrentSeason() mg.Season { today := time.Now() month := today.Format("01") @@ -43,7 +43,7 @@ func GetCurrentSeason() a.Season { season = "fall" } - return a.Season { + return mg.Season { Name: season, Year: year, } |