Added check for diff ignores

This commit is contained in:
2018-03-09 13:42:45 +01:00
parent c95355383e
commit 8a57178664
9 changed files with 88 additions and 46 deletions

View File

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