package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Dec 10, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func And[I, O, N any](first c.Converter[I, O], second c.Converter[O, N]) c.Converter[I, N]
-
func AsIs[T any](value T) T
-
func Or[I, O any](first c.Converter[I, O], second c.Converter[I, O]) c.Converter[I, O]
-
func To[T any](value T) T
And apply two converters in order.
func AsIs[T any](value T) T
AsIs helper for Map, Flatt.
Or applies first Converter, applies second Converter if the first returns zero.
func To[T any](value T) T
To helper for Map, Flatt.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.