utils

package
v0.0.0-...-e7326f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis
goi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL