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 {
20 return titlesDB.FuzzySearch(name)
23 // Searches for the given anime name, case folding.
25 // Returns the match with the smallest AID.
26 func SearchAnimeFold(name string) AID {
27 rs := SearchAnimeFoldAll(name).ResultsByAID()
34 // Searches for all anime that match the given anime name, case folding.
35 func SearchAnimeFoldAll(name string) titles.ResultSet {
36 return titlesDB.FuzzySearchFold(name)