You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package deliver |
|
|
|
var defaultOptions = Options{ |
|
Sync: true, |
|
} |
|
|
|
type Options struct { |
|
Sync bool // default true |
|
} |
|
|
|
type Option struct { |
|
f func(o *Options) |
|
} |
|
|
|
func WithSync(sync bool) Option { |
|
return Option{func(o *Options) { |
|
o.Sync = sync |
|
}} |
|
}
|
|
|