options

package
v0.0.0-...-c635e59 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 61

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any](obj *T, options []Option[T], optInitFunc ...func(instance *T)) (applied *T)

Apply applies the given options o the container object.

Types

type Option

type Option[T any] func(*T)

Option is a generic type for an optional parameter according to the functional paradigm.

Jump to

Keyboard shortcuts

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