option

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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]) Apply

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