]> Sergey Matveev's repositories - btrtrc.git/blobdiff - metainfo/hash.go
refactor struct identifiers to follow conventional go names
[btrtrc.git] / metainfo / hash.go
index 08c8e9e924311a9642446519210c31f5c8eb2ac6..46cb3e8d09df3e198cc0a4c9e41a05d2d1ad87c8 100644 (file)
@@ -5,14 +5,14 @@ import "fmt"
 // 20-byte SHA1 hash used for info and pieces.
 type Hash [20]byte
 
-func (me Hash) Bytes() []byte {
-       return me[:]
+func (h Hash) Bytes() []byte {
+       return h[:]
 }
 
-func (ih *Hash) AsString() string {
-       return string(ih[:])
+func (h *Hash) AsString() string {
+       return string(h[:])
 }
 
-func (ih Hash) HexString() string {
-       return fmt.Sprintf("%x", ih[:])
+func (h Hash) HexString() string {
+       return fmt.Sprintf("%x", h[:])
 }