options

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 2

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