WithFetcher provides a custom Fetcher to be used whenever a path or url needs to be fetched.
(c Fetcher)
| 82 | // WithFetcher provides a custom Fetcher to be used whenever a path or url needs |
| 83 | // to be fetched. |
| 84 | func WithFetcher(c Fetcher) Option { |
| 85 | return Option{func(e *embedder) { e.Fetcher = c }} |
| 86 | } |
| 87 | |
| 88 | type embedder struct { |
| 89 | Fetcher |
no outgoing calls
searching dependent graphs…