Documentation ¶
Index ¶
- func Any(vs []string, f func(string) bool) bool
- func FilterBSR(vs []models.BookSearchResult, f func(models.BookSearchResult) bool) []models.BookSearchResult
- func Index(vs []string, t string) int
- func IndexBSR(vs []models.BookSearchResult, t models.BookSearchResult) int
- func IntInSlice(a int, list []int) bool
- func MapSlice(vs []string, f func(string, int) int) []int
- func RemoveBSRDuplicates(elements []models.BookSearchResult) []models.BookSearchResult
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterBSR ¶
func FilterBSR(vs []models.BookSearchResult, f func(models.BookSearchResult) bool) []models.BookSearchResult
FilterBSR filters []BookSearchResults if function returns true for any value.
func IndexBSR ¶
func IndexBSR(vs []models.BookSearchResult, t models.BookSearchResult) int
IndexBSR returns index of BSR in a BSR slice, otherwise -1.
func RemoveBSRDuplicates ¶
func RemoveBSRDuplicates(elements []models.BookSearchResult) []models.BookSearchResult
RemoveBSRDuplicates removes duplicates from []BookSearchResult and returns the new array.
func StringInSlice ¶
StringInSlice returns whether a is in list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.