diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-28 13:06:16 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-28 13:06:16 +0530 |
commit | 95b8ab702708538ccaf26efd141b448148ac6d6d (patch) | |
tree | 62d41395d8d45f9045c64974f7dcf7c15b7755ef /anime/README.md | |
parent | 2bf5302f9a653f46f7932329fd03aa3688afc35b (diff) |
documented manga package and fixed errors in anime README
Diffstat (limited to 'anime/README.md')
-rw-r--r-- | anime/README.md | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/anime/README.md b/anime/README.md index 5ea7922..72c92b7 100644 --- a/anime/README.md +++ b/anime/README.md @@ -95,16 +95,13 @@ Possible ranking types are: ``` go rankingType := "favorite" limit, offset := 10, 0 -fields := []string{"title", "media_type"} +fields := []string{"title"} ranking, err := myClient.GetAnimeRanking(rankingType, limit, offset, fields) -// loop over the array of "titles" returned by the API -for _, rankingAnime := range ranking.Titles { - anime := rankingAnime.Anime - rankNum := rankingAnime.RankNum - - fmt.Printf("Title: %s, Rank Number: %d", anime.Title, rankNum) +// loop over the array of animes returned by the API +for _, anime := range ranking.Animes { + fmt.Printf("Title: %s, Rank Number: %d", anime.Title, anime.RankNum) } // ranking lists have page numbers |