4 "github.com/Kovensky/go-anidb/titles"
7 // Searches for the given anime name, case sensitive.
9 // Returns the match with the smallest AID.
10 func SearchAnime(name string) AID {
11 rs := SearchAnimeAll(name).ResultsByAID()
18 // Searches for all anime that match the given anime name, case sensitive.
19 func SearchAnimeAll(name string) titles.ResultSet {
23 return titlesDB.FuzzySearch(name)
26 // Searches for the given anime name, case folding.
28 // Returns the match with the smallest AID.
29 func SearchAnimeFold(name string) AID {
30 rs := SearchAnimeFoldAll(name).ResultsByAID()
37 // Searches for all anime that match the given anime name, case folding.
38 func SearchAnimeFoldAll(name string) titles.ResultSet {
42 return titlesDB.FuzzySearchFold(name)