Created animediff package
This commit is contained in:
@ -3,18 +3,12 @@ package utils
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal"
|
||||
"github.com/animenotifier/notify.moe/utils/animediff"
|
||||
)
|
||||
|
||||
// AnimeDiff describes a difference between two anime.
|
||||
type AnimeDiff interface {
|
||||
String() string
|
||||
DetailsA() string
|
||||
DetailsB() string
|
||||
}
|
||||
|
||||
// MALComparison encapsulates the difference between an ARN anime and a MAL anime.
|
||||
type MALComparison struct {
|
||||
Anime *arn.Anime
|
||||
MALAnime *mal.Anime
|
||||
Differences []AnimeDiff
|
||||
Differences []animediff.Difference
|
||||
}
|
||||
|
Reference in New Issue
Block a user