ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
dir: /object/id/objectid_string.go/
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])
}