OpenCollectionURL dispatches the URL to the opener that is registered with the URL's scheme. OpenCollectionURL is safe to call from multiple goroutines.
(ctx context.Context, u *url.URL)
| 64 | // OpenCollectionURL dispatches the URL to the opener that is registered with |
| 65 | // the URL's scheme. OpenCollectionURL is safe to call from multiple goroutines. |
| 66 | func (mux *URLMux) OpenCollectionURL(ctx context.Context, u *url.URL) (*Collection, error) { |
| 67 | opener, err := mux.schemes.FromURL("Collection", u) |
| 68 | if err != nil { |
| 69 | return nil, err |
| 70 | } |
| 71 | return opener.(CollectionURLOpener).OpenCollectionURL(ctx, u) |
| 72 | } |
| 73 | |
| 74 | var defaultURLMux = new(URLMux) |
| 75 |
nothing calls this directly
no test coverage detected