fopt

package
v0.0.0-...-a4ecd53 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any](t *T, opts ...Option[T])

func New

func New[T any](opts ...Option[T]) *T

func NewVal

func NewVal[T any](opts ...Option[T]) T

func Setter

func Setter[T any, F any](p Ptr[T, F]) func(F) Option[T]

Types

type Option

type Option[T any] func(*T)

func False

func False[T any](p Ptr[T, bool]) Option[T]

func True

func True[T any](p Ptr[T, bool]) Option[T]

type Ptr

type Ptr[T any, F any] func(*T) *F

Jump to

Keyboard shortcuts

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