Documentation
¶
Overview ¶
Package settings implements the functions, types, and interfaces for the module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAny ¶
func ApplyAny[S any](s *S, fs []interface{}) *S
ApplyAny Applies a set of setting functions to a struct. These Settings functions can be ApplyFunc[S] or func(*S), or objects that implement the ApplySetting interface.
func ApplyOr ¶
func ApplyOr[S any](s *S, fs ...func(*S)) *S
ApplyOr is an apply settings with defaults
func ApplyOrZero ¶
func ApplyOrZero[S any](fs ...func(*S)) *S
ApplyOrZero is an apply settings with defaults
Types ¶
type ApplySetting ¶
type ApplySetting[S any] interface { Apply(v *S) }
Click to show internal directories.
Click to hide internal directories.