Documentation ¶
Index ¶
- func BatchListIntoGroupsOf(slice []string, batchSize int) [][]string
- func Keys(m map[string]string) []string
- func ListContainsElement(list []string, element string) bool
- func MakeCopyOfList(list []string) []string
- func MergeMaps(maps ...map[string]interface{}) map[string]interface{}
- func RemoveElementFromList(list []string, element string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchListIntoGroupsOf ¶
BatchListIntoGroupsOf will group the provided string slice into groups of size n, with the last of being truncated to the remaining count of strings. Returns nil if n is <= 0
func ListContainsElement ¶
Return true if the given list contains the given element
func MakeCopyOfList ¶
MakeCopyOfList will return a new list that is a copy of the given list.
func MergeMaps ¶
Merge all the maps into one. Sadly, Go has no generics, so this is only defined for string to interface maps.
func RemoveElementFromList ¶
Return a copy of the given list with all instances of the given element removed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.