Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, item T) bool
Contains checks if a string slice contains a specific item.
func LastElement ¶
func LastElement[T any](s []T) T
LastElement returns the last element of a slice of any type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.