NewSetWithOptions creates new Set with options.
(ctx context.Context, opt *Options)
| 30 | |
| 31 | // NewSetWithOptions creates new Set with options. |
| 32 | func NewSetWithOptions(ctx context.Context, opt *Options) (*Set, error) { |
| 33 | inner, err := newInternalMapWithOptions(ctx, false, opt) |
| 34 | if err != nil { |
| 35 | return nil, err |
| 36 | } |
| 37 | |
| 38 | return &Set{inner}, nil |
| 39 | } |