builder

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder[T any] interface {
	Build() Result[T]
}

type Option

type Option[T any] = option.Option[T]

Option represents an optional value that may or may not be present.

type Prism

type Prism[S, A any] = prism.Prism[S, A]

Prism is an optic that focuses on a case of a sum type. It provides a way to extract and construct values of a specific variant.

func BuilderPrism

func BuilderPrism[T any, B Builder[T]](creator func(T) B) Prism[B, T]

BuilderPrism createa a Prism that converts between a builder and its type

type Result

type Result[T any] = result.Result[T]

Result represents a computation that may fail with an error. It's an alias for Either[error, T].

Jump to

Keyboard shortcuts

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