package
Version:
v1.0.0-rc.2
Opens a new window with list of versions in this module.
Published: Dec 9, 2022
License: Apache-2.0, BSD-2-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
func Apply[T any](obj *T, options []Option[T], optInitFunc ...func(instance *T)) (applied *T)
Apply applies the given options o the container object.
type Option[T any] func(*T)
Option is a generic type for an optional parameter according to the functional paradigm.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.