resolv

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package resolv provides values resolvers for maps that builded by ToMap-converter functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func First added in v0.0.10

func First[K, V any](exists bool, _ K, old, new V) V

First keeps the first value of a key

func Last added in v0.0.10

func Last[K, V any](_ bool, _ K, _, new V) V

Last retrieves the last value of a key

func Slice added in v0.0.11

func Slice[K, V any](_ bool, _ K, rv []V, v V) []V

Slice puts the values of one key into a slice

func SortedSlice added in v0.0.11

func SortedSlice[K, V cmp.Ordered](_ bool, _ K, rv []V, v V) []V

SortedSlice puts the values of one key into a sorted slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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