Add String method to all interfaces
This commit is contained in:
@@ -308,6 +308,10 @@ func (h *httpTransport) Listen(addr string) (Listener, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (h *httpTransport) String() string {
|
||||
return "http"
|
||||
}
|
||||
|
||||
func newHttpTransport(addrs []string, opt ...Option) *httpTransport {
|
||||
return &httpTransport{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user