aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 10:22:19 +0000
committerGravatar Runxi Yu2026-03-29 10:22:19 +0000
commitcdac77529a3f7416843b1d455d413c9b0f21cfff (patch)
tree274775de36c302716f43efdaffbb00ca5f3070f9 /object
parentobject/id: Split files (diff)
signatureNo signature
object/id: Zero is a property of the algorithm v0.1.140
Diffstat (limited to 'object')
-rw-r--r--object/id/algorithm_zero.go (renamed from object/id/objectid_zero.go)4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/id/objectid_zero.go b/object/id/algorithm_zero.go
index 9cc3d205..e8c0abf2 100644
--- a/object/id/objectid_zero.go
+++ b/object/id/algorithm_zero.go
@@ -1,7 +1,7 @@
package objectid
-// Zero returns the all-zero object ID for the specified algorithm.
-func Zero(algo Algorithm) ObjectID {
+// Zero returns the all-zero object ID for this algorithm.
+func (algo Algorithm) Zero() ObjectID {
id, err := FromBytes(algo, make([]byte, algo.Size()))
if err != nil {
panic(err)