aboutsummaryrefslogtreecommitdiff
path: root/mal/search.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-29 23:46:53 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-29 23:46:53 +0530
commit1395d849470cc564d593bd2074a69f012e4f70ce (patch)
treec14d064e86122add55340051f98c145b882d4878 /mal/search.go
parentccb1cf8c1679d5e8a401a85151ef9882e4293b81 (diff)
migrated from MAL2Go v1 to v2
Diffstat (limited to 'mal/search.go')
-rw-r--r--mal/search.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/mal/search.go b/mal/search.go
index 703cdb4..8fee461 100644
--- a/mal/search.go
+++ b/mal/search.go
@@ -21,8 +21,8 @@ package mal
import (
"fmt"
"os"
- a "github.com/MikunoNaka/MAL2Go/anime"
- m "github.com/MikunoNaka/MAL2Go/manga"
+ a "github.com/MikunoNaka/MAL2Go/v2/anime"
+ m "github.com/MikunoNaka/MAL2Go/v2/manga"
)
func SearchAnime(searchString string) []a.Anime {
@@ -36,7 +36,7 @@ func SearchAnime(searchString string) []a.Anime {
os.Exit(1)
}
- return res.Animes
+ return res
}
func SearchManga(searchString string) []m.Manga {
@@ -50,5 +50,5 @@ func SearchManga(searchString string) []m.Manga {
os.Exit(1)
}
- return res.Mangas
+ return res
}