convert

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package convert provides key, value convert adapters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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