Documentation ¶
Index ¶
- func GenerateComponentID() string
- func MapContainsKey[K comparable, V any](map_ map[K]V, item K) (result bool)
- func SliceContainsItem[K comparable](slice []K, item K) (result bool)
- func SliceItemIndex[K comparable](slice []K, item K) (index int)
- func SliceRemoveAtIndex[K comparable](s []K, index int) []K
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateComponentID ¶
func GenerateComponentID() string
func MapContainsKey ¶
func MapContainsKey[K comparable, V any](map_ map[K]V, item K) (result bool)
Shorthand to _, ok := someMap[someKey]
func SliceContainsItem ¶
func SliceContainsItem[K comparable](slice []K, item K) (result bool)
func SliceItemIndex ¶
func SliceItemIndex[K comparable](slice []K, item K) (index int)
Tries to get an index of the item in slice.
func SliceRemoveAtIndex ¶
func SliceRemoveAtIndex[K comparable](s []K, index int) []K
Removes the item at the given index.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.