Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, s T, modifier func(s T) T) bool
Contains checks if a given slice of type T contains the provided item. If a modifier func is provided, it is called with the slice item before the comparation.
func ContainsString ¶
ContainsString checks if a given slice of strings contains the provided string. If a modifier func is provided, it is called with the slice item before the comparation. Deprecated: Use Contains[T] instead
func ToSet ¶ added in v0.26.0
func ToSet[T comparable](slices ...[]T) []T
ToSet returns a single slice containing the unique values from one or more slices. The order of the items in the result is not guaranteed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.