options

package
v1.0.20-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOptions

func ApplyOptions[K any, T ~func(*K)](in ...T) K

func ApplyOptionsError

func ApplyOptionsError[K any, T ~func(*K) error](in ...T) (K, []error)

func ApplyOptionsErrorWithDefault

func ApplyOptionsErrorWithDefault[K any, T ~func(*K) error](k K, in ...T) (K, []error)

func ApplyOptionsWithDefault

func ApplyOptionsWithDefault[K any, T ~func(*K)](k K, in ...T) K

Types

type Option

type Option[T any] func(*T)

type OptionError

type OptionError[T any] func(*T) error

Jump to

Keyboard shortcuts

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