gslice

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v1.0.6

func Compare[T comparable](slice, slice2 []T) bool

func CompareOrdered added in v1.0.6

func CompareOrdered[T constraints.Ordered](slice, slice2 []T) bool

func GetMap added in v1.0.9

func GetMap[K comparable, V any](slice []V, keyFunc func(V) K) map[K]V

func InSlice

func InSlice[T comparable](slice []T, obj T) bool

func RemoveAddr added in v1.0.8

func RemoveAddr[T any](slice []*T) []T

func Sort added in v1.0.6

func Sort[T constraints.Ordered](slice []T)

func TakeAddr added in v1.0.8

func TakeAddr[T any](slice []T) []*T

Types

This section is empty.

Jump to

Keyboard shortcuts

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