mirror of
https://github.com/restic/restic.git
synced 2026-10-30 20:15:43 +00:00
Refactor StorageMap to BlobList
This commit is contained in:
1 parent
d594cd89b7
commit
d1e4431514
10 files changed
+285
-111
No files matched your search
@@ -47,6 +47,11 @@ func (id ID) EqualString(other string) (bool, error) {
|
||||
return id.Equal(ID(s)), nil
|
||||
}
|
||||
|
||||
// Compare compares this ID to another one, returning -1, 0, or 1.
|
||||
func (id ID) Compare(other ID) int {
|
||||
return bytes.Compare(other, id)
|
||||
}
|
||||
|
||||
func (id ID) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(id.String())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user