diff options
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, } |