This commit is contained in:
2017-06-24 00:36:07 +02:00
parent cdec0fc9a7
commit 3fcb1bc36e
6 changed files with 39 additions and 57 deletions

View File

@ -7,7 +7,6 @@ import (
"github.com/fatih/color"
)
const maxPopularAnime = 10
// Note this is using the airing-anime as a template with modfications
@ -32,7 +31,7 @@ func main() {
sort.Slice(animeList, func(i, j int) bool {
return animeList[i].Rating.Overall > animeList[j].Rating.Overall
})
// Change size of anime list to 10
animeList = animeList[:maxPopularAnime]