Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOptions ¶
ApplyOptions applies all the callOptions to options. options must be a pointer to a struct and callOptions must be a list of objects that implement CallOption.
Types ¶
type CallOption ¶
CallOption implements an optional argument to a method call. See https://blog.devgenius.io/go-call-option-that-can-be-used-with-multiple-methods-6c81734f3dbe for an explanation of the usage pattern.
func NewCallOption ¶
func NewCallOption(f func(any) error) CallOption
NewCallOption returns a new CallOption whose Do() method calls function "f".
Click to show internal directories.
Click to hide internal directories.