Documentation ¶
Overview ¶
Package slice contains functions for manipulating slices
Index ¶
- func ContainsInt(a int, list []int) bool
- func ContainsString(a string, list []string) bool
- func ConvertToBoolMap(slice []string) (mapped map[string]bool)
- func ConvertToIntMap(slice []string) (mapped map[string]int)
- func IndexOfString(str string, s []string) int
- func ReverseInt(s []int) []int
- func ReverseString(s []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt ¶
ContainsInt checks if an int is found in a slice of ints.
func ContainsString ¶
ContainsString checks if a string is found in a slice of strings.
func ConvertToBoolMap ¶
ConvertToBoolMap converts a slice to a map of booleans.
func ConvertToIntMap ¶
ConvertToIntMap converts a slice to a map of indices.
func IndexOfString ¶
IndexOfString returns the index of a value in a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.