We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5500af3 commit 23a6252Copy full SHA for 23a6252
options.go
@@ -19,14 +19,14 @@ var (
19
20
// An Option configures a mutex.
21
type Option interface {
22
- Apply(*Options)
+ apply(*Options)
23
}
24
25
// OptionFunc is a function that configures a queue.
26
type OptionFunc func(*Options)
27
28
// Apply calls f(option)
29
-func (f OptionFunc) Apply(option *Options) {
+func (f OptionFunc) apply(option *Options) {
30
f(option)
31
32
@@ -105,7 +105,7 @@ func NewOptions(opts ...Option) *Options {
105
// Loop through each option
106
for _, opt := range opts {
107
// Call the option giving the instantiated
108
- opt.Apply(o)
+ opt.apply(o)
109
110
111
return o
0 commit comments