shithub: furgit

ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
dir: /object/id/objectid_string.go/

View raw version
package objectid

import "encoding/hex"

// String returns the canonical hex representation.
func (id ObjectID) String() string {
	size := id.Algorithm().Size()

	return hex.EncodeToString(id.data[:size])
}