package
Version:
v0.58.0-rc.1
Opens a new window with list of versions in this module.
Published: Sep 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package optional provides generic function to handle optional parameters.
func ApplyOptions[Param any, Option ~func(*Param) error](instance *Param, options []Option) error
ApplyOptions applies the given options to the given instance.
func MakeParams[Param any, Option ~func(*Param) error](options ...Option) (*Param, error)
MakeParams creates a new Param instance and applies the given options.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.