2018-04-04 14:51:55 +02:00

22 lines
392 B
Go

package main
import (
"fmt"
"github.com/animenotifier/arn"
"github.com/fatih/color"
)
func main() {
defer arn.Node.Close()
for mapping := range arn.StreamKitsuMappings() {
fmt.Printf(
"Kitsu Anime %s: %s mapped to %s\n",
mapping.Relationships.Item.Data.ID,
color.YellowString(mapping.Attributes.ExternalSite),
color.GreenString(mapping.Attributes.ExternalID),
)
}
}