option

package
v0.2.60 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: LGPL-2.1 Imports: 3 Imported by: 33

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]) Apply added in v0.2.52

func (s Setting[T]) Apply(opts *T)

Jump to

Keyboard shortcuts

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