options

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncOption added in v0.0.4

type FuncOption[T any] struct {
	// contains filtered or unexported fields
}

func NewFuncOption added in v0.0.4

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

func (*FuncOption[T]) Apply added in v0.0.4

func (fo *FuncOption[T]) Apply(o *T)

type Option added in v0.0.4

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