Discover Packages
github.com/gurch101/gowebutils
pkg
collectionutils
package
Version:
v0.0.0-...-0c6c348
Opens a new window with list of versions in this module.
Published: Jun 12, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Contains[T any ](collection []T, predicate func(T) bool ) bool
Contains checks if any element in the collection satisfies the predicate.
func ContainsAll[T any ](collection []T, predicate func(T) bool ) bool
ContainsAll checks if all elements in the collection satisfy the predicate.
Equals checks if two slices are equal.
func FindFirst[T any ](slice []T, predicate func(T) bool ) (T, bool )
FindFirst returns the first element in the slice for which the predicate returns true.
If no element satisfies the predicate, it returns the zero value of the type and false.
func Map[T any , U any ](input []T, f func(T) U) []U
Map applies a function to each element of a slice and returns a new slice with the results.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.