sliceutils

package
v0.0.0-...-a6d58bf Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedStringKeys

func SortedStringKeys[T any](m map[string]T) []string

SortedStringKeys returns the keys of a string to anything map in a sorted slice.

func ToAnySlice

func ToAnySlice[T any](in []T) []any

ToAnySlice takes a []T, and converts it into a []any. This is a common conversion when a function expects a []any but the calling code has a []T, with T not being any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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