Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert[A, B any, S ~[]B](v S) []A
Convert converts a slice of type B to a slice of type A. Convert panics if B cannot be type asserted to type A.
func DeleteVal ¶
func DeleteVal[E any](s []E, v E) []E
DeleteVal deletes the first occurrence of a value in a slice of the type E and returns a new slice without the value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.