Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unique ¶
func Unique[T comparable](slice []T) []T
Types ¶
type ConcurrentSlice ¶
type ConcurrentSlice[T any] struct { // contains filtered or unexported fields }
func (*ConcurrentSlice[T]) All ¶
func (cs *ConcurrentSlice[T]) All() []T
func (*ConcurrentSlice[T]) Append ¶
func (cs *ConcurrentSlice[T]) Append(item T)
func (*ConcurrentSlice[T]) Clear ¶
func (cs *ConcurrentSlice[T]) Clear()
func (*ConcurrentSlice[T]) Len ¶
func (cs *ConcurrentSlice[T]) Len() int
func (*ConcurrentSlice[T]) Retrieve ¶
func (cs *ConcurrentSlice[T]) Retrieve(size int) []T
type CopyableMap ¶
type CopyableMap map[string]interface{}
func (CopyableMap) DeepCopy ¶
func (m CopyableMap) DeepCopy() map[string]interface{}
DeepCopy will create a deep copy of this map. The depth of this copy is all inclusive. Both maps and slices will be considered when making the copy.
type CopyableSlice ¶
type CopyableSlice []interface{}
func (CopyableSlice) DeepCopy ¶
func (s CopyableSlice) DeepCopy() []interface{}
DeepCopy will create a deep copy of this slice. The depth of this copy is all inclusive. Both maps and slices will be considered when making the copy.
Click to show internal directories.
Click to hide internal directories.