Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-801

Add ObjectID methods to convert from and to `[]byte`

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • BSON
    • None

    Description

      By analog with `Hex() string` and `ObjectIDFromHex(s string) (ObjectID, error)` methods it will be handy to have methods likeĀ `Bytes() []byte` andĀ `ObjectIDFromBytes(b []bytes) (ObjectID, error)`.

      Attachments

        Activity

          People

            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            turboezh Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: