ref: df1f2fb3daa1acd25c88510f259d5535fb482126
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])
}