From 32f84b9d89d34ab74f8843f939f8d1d811d403ad Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 10:14:38 +0000 Subject: object/id: Split files --- object/id/algorithm_string.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 object/id/algorithm_string.go (limited to 'object/id/algorithm_string.go') diff --git a/object/id/algorithm_string.go b/object/id/algorithm_string.go new file mode 100644 index 00000000..410ee8a3 --- /dev/null +++ b/object/id/algorithm_string.go @@ -0,0 +1,11 @@ +package objectid + +// String returns the canonical algorithm name. +func (algo Algorithm) String() string { + inf := algo.info() + if inf.name == "" { + return "unknown" + } + + return inf.name +} -- cgit v1.3.1-10-gc9f91