mirror of
https://github.com/restic/restic.git
synced 2025-08-11 06:47:45 +00:00
Refactor StorageMap to BlobList
This commit is contained in:
@@ -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