aboutsummaryrefslogtreecommitdiff
path: root/object/id/algorithm_string.go
blob: 410ee8a39f80469f694615220c0ae4d3aff93802 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
}