Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
Close closes the io.Closer interface. Logs failures with warning level and the given context on failure. Supposed usage as simple drop-in replacement for defer closer.Close() usage where errors could go unnoticed.
func Contains ¶
func Contains[T comparable](list []T, val T) bool
Contains checks if the list slice contains the val.
func ContainsAfterSplit ¶
ContainsAfterSplit checks if the list string slice contains the val string after splitting each element along the splitter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.