mirror of
https://github.com/restic/restic.git
synced 2025-08-11 06:37:46 +00:00
Refactor repository structure
Merge Map data type into Tree.
This commit is contained in:
@@ -36,6 +36,12 @@ func (id ID) String() string {
|
||||
return hex.EncodeToString(id)
|
||||
}
|
||||
|
||||
const shortStr = 4
|
||||
|
||||
func (id ID) Str() string {
|
||||
return hex.EncodeToString(id[:shortStr])
|
||||
}
|
||||
|
||||
// Equal compares an ID to another other.
|
||||
func (id ID) Equal(other ID) bool {
|
||||
return bytes.Equal(id, other)
|
||||
|
Reference in New Issue
Block a user