blob: 36a7177d809d8ec0318ebcb6c3a9d860fc8e974a (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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])
}
|