Added more inspectors for maldiff
This commit is contained in:
33
utils/animediff/EndDate.go
Normal file
33
utils/animediff/EndDate.go
Normal file
@ -0,0 +1,33 @@
|
||||
package animediff
|
||||
|
||||
// EndDate describes differing Romaji titles.
|
||||
type EndDate struct {
|
||||
DateA string
|
||||
DateB string
|
||||
NumericHash uint64
|
||||
}
|
||||
|
||||
// Type returns the diff type.
|
||||
func (diff *EndDate) Type() string {
|
||||
return "EndDate"
|
||||
}
|
||||
|
||||
// Explanation returns the description.
|
||||
func (diff *EndDate) Explanation() string {
|
||||
return "End dates are different"
|
||||
}
|
||||
|
||||
// DetailsA shows the details for the first anime.
|
||||
func (diff *EndDate) DetailsA() string {
|
||||
return diff.DateA
|
||||
}
|
||||
|
||||
// DetailsB shows the details for the second anime.
|
||||
func (diff *EndDate) DetailsB() string {
|
||||
return diff.DateB
|
||||
}
|
||||
|
||||
// Hash returns the hash for the suggested value (from anime B).
|
||||
func (diff *EndDate) Hash() uint64 {
|
||||
return diff.NumericHash
|
||||
}
|
Reference in New Issue
Block a user