options

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 1

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