Skip to content

Commit 23a6252

Browse files
committed
chore: update options member
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
1 parent 5500af3 commit 23a6252

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

options.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ var (
1919

2020
// An Option configures a mutex.
2121
type Option interface {
22-
Apply(*Options)
22+
apply(*Options)
2323
}
2424

2525
// OptionFunc is a function that configures a queue.
2626
type OptionFunc func(*Options)
2727

2828
// Apply calls f(option)
29-
func (f OptionFunc) Apply(option *Options) {
29+
func (f OptionFunc) apply(option *Options) {
3030
f(option)
3131
}
3232

@@ -105,7 +105,7 @@ func NewOptions(opts ...Option) *Options {
105105
// Loop through each option
106106
for _, opt := range opts {
107107
// Call the option giving the instantiated
108-
opt.Apply(o)
108+
opt.apply(o)
109109
}
110110

111111
return o

0 commit comments

Comments
 (0)