Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAny ¶ added in v0.0.9
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 ¶ added in v0.0.4
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 ApplyFunc ¶ added in v0.0.9
type ApplyFunc[S any] func(*S)
ApplyFunc is a ApplyFunc function for Apply
type ApplySetting ¶ added in v0.0.9
type ApplySetting[S any] interface { Apply(v *S) }
Click to show internal directories.
Click to hide internal directories.