convert

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[K comparable, V1 any, V2 any](m *map[K]V1, f func(V1) V2) map[K]V2

func MapSlice

func MapSlice[K comparable, V1 any, V2 any](m map[K]V1, f func(V1) V2) []V2

func Slice

func Slice[In any, Out any](input []In, fn func(In) Out) []Out

func SliceCast

func SliceCast[From, To any](in []From, convertFn func(From) To) []To

func SlicePointer added in v0.0.12

func SlicePointer[In any, Out any](input *[]In, fn func(In) Out) []Out

Types

This section is empty.

Jump to

Keyboard shortcuts

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