RegisterSink registers a user-supplied factory for all sinks with a particular scheme. All schemes must be ASCII, valid under section 0.1 of RFC 3986 (https://tools.ietf.org/html/rfc3983#section-3.1), and must not already have a factory registered. Zap automatically registers a factory for the "fil
(scheme string, factory func(*url.URL) (Sink, error))
| 124 | // have a factory registered. Zap automatically registers a factory for the |
| 125 | // "file" scheme. |
| 126 | func RegisterSink(scheme string, factory func(*url.URL) (Sink, error)) error { |
| 127 | return _sinkRegistry.RegisterSink(scheme, factory) |
| 128 | } |
| 129 | |
| 130 | func (sr *sinkRegistry) newFileSinkFromURL(u *url.URL) (Sink, error) { |
| 131 | if u.User != nil { |