William Petit
c73fe8cca5
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
17 lines
207 B
Go
17 lines
207 B
Go
package rewriter
|
|
|
|
type Options struct {
|
|
}
|
|
|
|
type OptionFunc func(opts *Options)
|
|
|
|
func NewOptions(funcs ...OptionFunc) *Options {
|
|
opts := &Options{}
|
|
|
|
for _, fn := range funcs {
|
|
fn(opts)
|
|
}
|
|
|
|
return opts
|
|
}
|