Added difference ignore button

This commit is contained in:
2018-03-09 14:48:00 +01:00
parent 1e63498fa3
commit cb9e277718
10 changed files with 84 additions and 18 deletions

View File

@ -4,8 +4,9 @@ import "strings"
// Genres describes differing genres.
type Genres struct {
GenresA []string
GenresB []string
GenresA []string
GenresB []string
NumericHash uint64
}
// Type returns the diff type.
@ -27,3 +28,8 @@ func (diff *Genres) DetailsA() string {
func (diff *Genres) DetailsB() string {
return strings.Join(diff.GenresB, ", ")
}
// Hash returns the hash for the suggested value (from anime B).
func (diff *Genres) Hash() uint64 {
return diff.NumericHash
}