convertto

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(value any) types.Result[string]

func Pointer

func Pointer[T any](value T) *T

func PrettyJSON

func PrettyJSON(value any) types.Result[string]

func Value

func Value[T any](pointer *T) T

Types

type OptionConverter added in v0.0.6

type OptionConverter[T1 any, T2 any] interface {
	Then(call func(T1) types.Option[T2]) types.Option[T2]
}

func Option added in v0.0.6

func Option[T1 any, T2 any](option types.Option[T1]) OptionConverter[T1, T2]

type ResultConverter added in v0.0.6

type ResultConverter[T1 any, T2 any] interface {
	Then(call func(T1) types.Result[T2]) types.Result[T2]
}

func Result added in v0.0.6

func Result[T1 any, T2 any](result types.Result[T1]) ResultConverter[T1, T2]

Jump to

Keyboard shortcuts

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