util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeySlice

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

KeySlice returns the keys of the map M, like slices.Collect(maps.Keys(m)).

func Sorted

func Sorted[M ~map[K]V, K cmp.Ordered, V any](m M) iter.Seq2[K, V]

Sorted returns an iterator over the entries of m in key order.

func Wrapf

func Wrapf(errp *error, format string, args ...any)

Wrapf wraps *errp with the given formatted message if *errp is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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