option

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFuncOption

func NewFuncOption[T any](f func(T)) *funcOption[T]

Types

type EmptyOption

type EmptyOption[T any] struct{}

func (EmptyOption[T]) Apply

func (EmptyOption[T]) Apply(T)

type Option

type Option[T any] interface {
	Apply(T)
}

Jump to

Keyboard shortcuts

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