option

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append[T any](opts T, settings ...Setting[T]) T

func Change

func Change[T any](opts *T, settings ...Setting[T]) *T

func Make

func Make[T any](defaults Setting[T], settings ...Setting[T]) (opts T)

func New

func New[T any](defaults Setting[T], settings ...Setting[T]) *T

Types

type Setting

type Setting[T any] generic.Action1[*T]

func (Setting[T]) Cast

func (s Setting[T]) Cast() generic.Action1[*T]

Jump to

Keyboard shortcuts

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