slices

package
v0.0.0-...-7ef2900 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(vs []string, f func(string) bool) bool

Any returns whether f returns true for any value.

func FilterBSR

FilterBSR filters []BookSearchResults if function returns true for any value.

func Index

func Index(vs []string, t string) int

Index finds index of string in []string, otherwise returns -1

func IndexBSR

IndexBSR returns index of BSR in a BSR slice, otherwise -1.

func IntInSlice

func IntInSlice(a int, list []int) bool

IntInSlice returns whether a is in list.

func MapSlice

func MapSlice(vs []string, f func(string, int) int) []int

MapSlice maps a []string to a []int

func RemoveBSRDuplicates

func RemoveBSRDuplicates(elements []models.BookSearchResult) []models.BookSearchResult

RemoveBSRDuplicates removes duplicates from []BookSearchResult and returns the new array.

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice returns whether a is in list.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL