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 returns true if the item is in the slice
func StringLimiter ¶
StringLimiter will limit a string to a specific limit and drop rest of the string
Example:
StringLimiter("hello world", 15) => "hello world" StringLimiter("hello world", 3) => "hell"
func StringifySlice ¶
StringifySlice transform a slice of Stringer into a slice of string
func Uniq ¶
func Uniq[T comparable](slice []T) []T
Uniq returns a new slice with unique items from the given slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.