Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterSlice ¶
FilterSlice filters elements in a slice based on a provided filter function. It iterates over each element in the input slice 'sl' and applies the 'filter' function to each element. If the 'filter' function returns true for an element, that element is included in the resulting slice. If the 'filter' function is nil, the original slice 'sl' is returned as is. The function returns a new slice containing the filtered elements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.