Added short synopsis diff

This commit is contained in:
2018-03-09 05:26:34 +01:00
parent 1910b3c2d8
commit 65851b9128
3 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,22 @@
package animediff
// ShorterSynopsis describes differing Japanese titles.
type ShorterSynopsis struct {
SynopsisA string
SynopsisB string
}
// String returns the description.
func (diff *ShorterSynopsis) String() string {
return "Synopsis is shorter"
}
// DetailsA shows the details for the first anime.
func (diff *ShorterSynopsis) DetailsA() string {
return diff.SynopsisA
}
// DetailsB shows the details for the second anime.
func (diff *ShorterSynopsis) DetailsB() string {
return diff.SynopsisB
}