]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add Client.String
authorMatt Joiner <anacrolix@gmail.com>
Thu, 3 Oct 2019 09:11:45 +0000 (19:11 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 3 Oct 2019 09:11:45 +0000 (19:11 +1000)
client.go

index 6351286cbeb1ef61f23aecb0eaf4408333053241..cdd3a29e7f38f1dbbd282d58de63b33ffcc5b814 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1378,6 +1378,10 @@ func (cl *Client) locker() sync.Locker {
        return clientLocker{cl}
 }
 
+func (cl *Client) String() string {
+       return fmt.Sprintf("<%[1]T %[1]p>", cl)
+}
+
 type clientLocker struct {
        *Client
 }