utils

package
v0.0.0-...-56a7601 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToSlice

func MapToSlice[T any](m map[string]*T) []T

MapToSlice converts a Map of pointer to T to a SLice of T

func SliceToMap

func SliceToMap[T any](slice []T, keyFunc func(T) string) map[string]*T

SliceToMap converts a Slice of T to a Map of pointer to T where the key is a string retrieved by the passed in keyFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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