]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peerid.go
Make peerID a public type
[btrtrc.git] / peerid.go
index 9d8bf1cc608566de19503bf53cba6d3a2728ac39..c9e3f4cdae94ac8f93ba6f4a283c296f40aff84a 100644 (file)
--- a/peerid.go
+++ b/peerid.go
@@ -4,9 +4,9 @@ import (
        "encoding/hex"
 )
 
-type peerID [20]byte
+type PeerID [20]byte
 
-func (me peerID) String() string {
+func (me PeerID) String() string {
        if me[0] == '-' && me[7] == '-' {
                return string(me[:8]) + hex.EncodeToString(me[8:])
        }