Documentation ¶
Overview ¶
ConvertSliceToInterface converts a slice of a struct type to a slice of an interface type.
StringifySlice returns the string slice representation of a slice
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertSliceToInterface ¶
func ConvertSliceToInterface[T, G any](structSlice []T) (interfaceSlice []G)
ConvertSliceToInterface converts a slice of a struct type to a slice of an interface type.
- T is any type
- G is an interface type that *T implements
If *T does not implement G: runtime panic
func StringifySlice ¶
StringifySlice returns the string representation of any slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.