package f2 type Option = func(*options) // WithExtensions initializes the [Framework] with the provided extensions, // allowing reusable test code to handle things like binding flags, registering // test lifecycle functions, etc for the user. func WithExtensions(ext ...Extension) Option { return func(o *options) { o.extensions = ext } } type options struct { extensions []Extension } func makeOptions(opts ...Option) options { o := options{} for _, opt := range opts { opt(&o) } return o }