options

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOptions

func ApplyOptions[T any](target *T, opts ...Option[T]) error

Apply given opts. Any of aopts must not be nil. In case of error on any position, opts execution will be stopped.

Types

type Option

type Option[T any] func(target *T) error

Realization of functional option pattern

Jump to

Keyboard shortcuts

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