utils

package
v3.25.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[S ~[]E, E any](s S, keep func(E) bool) S

func Keys

func Keys[M ~map[K]V, K comparable, V any](m M) []K

Keys returns a slice of keys from the map. Alternative to using maps.Keys which returns an iterator instead of a slice.

func Values

func Values[M ~map[K]V, K comparable, V any](m M) []V

Values returns a slice of values from the map. Alternative to using maps.Values which returns an iterator instead of a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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