package
Version:
v0.0.12
Opens a new window with list of versions in this module.
Published: Mar 31, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package resolv provides values resolvers for maps that builded by ToMap-converter functions
-
func First[K, V any](exists bool, _ K, old, new V) V
-
func Last[K, V any](_ bool, _ K, _, new V) V
-
func Slice[K, V any](_ bool, _ K, rv []V, v V) []V
-
func SortedSlice[K, V cmp.Ordered](_ bool, _ K, rv []V, v V) []V
func First[K, V any](exists bool, _ K, old, new V) V
First keeps the first value of a key
func Last[K, V any](_ bool, _ K, _, new V) V
Last retrieves the last value of a key
func Slice[K, V any](_ bool, _ K, rv []V, v V) []V
Slice puts the values of one key into a slice
SortedSlice puts the values of one key into a sorted slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.