aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-11 07:41:43 +0000
committerGravatar Runxi Yu2026-06-11 07:41:43 +0000
commit06cbf10a576f8d8a33f95c1b9dfb44a9e6f7e330 (patch)
treeb9002c25c22455c15aab43341c51babb301eeb47 /object
parentinternal/format/packfile: OFS distances probably just belong to packfile (diff)
object/id: Export MaxObjectIDSize
Diffstat (limited to 'object')
-rw-r--r--object/id/object_format_details.go4
-rw-r--r--object/id/object_format_ops.go2
-rw-r--r--object/id/object_id.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/object/id/object_format_details.go b/object/id/object_format_details.go
index d0278602..4dad5871 100644
--- a/object/id/object_format_details.go
+++ b/object/id/object_format_details.go
@@ -50,8 +50,8 @@ var objectFormatTable = [...]objectFormatDetails{
},
}
-// maxObjectIDSize MUST be >= the largest supported object format size.
-const maxObjectIDSize = sha256.Size
+// MaxObjectIDSize MUST be >= the largest supported object format size.
+const MaxObjectIDSize = sha256.Size
var (
//nolint:gochecknoglobals
diff --git a/object/id/object_format_ops.go b/object/id/object_format_ops.go
index 51bcae82..3e15b157 100644
--- a/object/id/object_format_ops.go
+++ b/object/id/object_format_ops.go
@@ -83,6 +83,6 @@ func (objectFormat ObjectFormat) Sum(data []byte) ObjectID {
func (objectFormat ObjectFormat) Zero() ObjectID {
return ObjectID{
objectFormat: objectFormat,
- data: [maxObjectIDSize]byte{},
+ data: [MaxObjectIDSize]byte{},
}
}
diff --git a/object/id/object_id.go b/object/id/object_id.go
index 926142ef..1171504d 100644
--- a/object/id/object_id.go
+++ b/object/id/object_id.go
@@ -5,5 +5,5 @@ package id
//nolint:recvcheck
type ObjectID struct {
objectFormat ObjectFormat
- data [maxObjectIDSize]byte
+ data [MaxObjectIDSize]byte
}