Created animediff package
This commit is contained in:
22
utils/animediff/JapaneseTitle.go
Normal file
22
utils/animediff/JapaneseTitle.go
Normal file
@ -0,0 +1,22 @@
|
||||
package animediff
|
||||
|
||||
// JapaneseTitle describes differing Japanese titles.
|
||||
type JapaneseTitle struct {
|
||||
TitleA string
|
||||
TitleB string
|
||||
}
|
||||
|
||||
// String returns the description.
|
||||
func (diff *JapaneseTitle) String() string {
|
||||
return "Japanese titles are different"
|
||||
}
|
||||
|
||||
// DetailsA shows the details for the first anime.
|
||||
func (diff *JapaneseTitle) DetailsA() string {
|
||||
return diff.TitleA
|
||||
}
|
||||
|
||||
// DetailsB shows the details for the second anime.
|
||||
func (diff *JapaneseTitle) DetailsB() string {
|
||||
return diff.TitleB
|
||||
}
|
Reference in New Issue
Block a user