MCPcopy Create free account
hub / github.com/campoy/embedmd / WithFetcher

Function WithFetcher

embedmd/embedmd.go:84–86  ·  view source on GitHub ↗

WithFetcher provides a custom Fetcher to be used whenever a path or url needs to be fetched.

(c Fetcher)

Source from the content-addressed store, hash-verified

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

Callers 1

TestProcessFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestProcessFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…