conv

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And[I, O, N any](first c.Converter[I, O], second c.Converter[O, N]) c.Converter[I, N]

And apply two converters in order.

func AsIs

func AsIs[T any](value T) T

AsIs helper for Map, Flatt.

func Or

func Or[I, O any](first c.Converter[I, O], second c.Converter[I, O]) c.Converter[I, O]

Or applies first Converter, applies second Converter if the first returns zero.

func To

func To[T any](value T) T

To helper for Map, Flatt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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