utils

package
v0.0.0-...-c3e479f Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtIndexes

func AtIndexes[T comparable](elems []T, v T) []int

AtIndexes returns a slice of the indexes of elems that contain v

func Contains

func Contains[T comparable](elems []T, v T) bool

Contains returns true if elems contains v

func Ptr

func Ptr[T any](item T) *T

Ptr converts any value to a pointer to that value

func SlicesEqual

func SlicesEqual[T comparable](s1 []T, s2 []T) bool

SlicesEqual returns true if s1 and s2 have the same elements in the same order

Types

This section is empty.

Jump to

Keyboard shortcuts

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