micro/util/file/options.go
2020-08-20 14:18:52 +03: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
}
}