micro/util/file/options.go
2020-08-19 16:03:19 +01:00

16 lines
209 B
Go

package file
import "context"
type Options struct {
Context context.Context
}
type Option func(o *Options)
func WithContext(ctx context.Context) Option {
return func(o *Options) {
o.Context = ctx
}
}