package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Jun 11, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package convert provides key, value convert adapters
-
func Key[V, K, KOUT any](converter func(K) (KOUT, error)) (out func(key K, val V) (KOUT, V, error))
-
func Value[K, V, VOUT any](converter func(V) (VOUT, error)) (out func(key K, val V) (K, VOUT, error))
func Key[V, K, KOUT any](converter func(K) (KOUT, error)) (out func(key K, val V) (KOUT, V, error))
Key adapts a key converter to the key/value converter that converts only keys
func Value[K, V, VOUT any](converter func(V) (VOUT, error)) (out func(key K, val V) (K, VOUT, error))
Value adapts a value converter to the key/value converter that converts only values
Source Files
¶
Click to show internal directories.
Click to hide internal directories.