(opener Opener[T])
| 24 | } |
| 25 | |
| 26 | func WithCustomOpener[T any](opener Opener[T]) Option[T] { |
| 27 | return func(o *Options[T]) { |
| 28 | o.CustomOpener = opener |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | type Opener[T any] func(ctx context.Context, url string) (T, error) |
| 33 |
no outgoing calls
searching dependent graphs…