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

Add an function to validate objectID format in Go Driver

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Fully Compatible
    • Needed
    • Hide

      Add section to this method

      Show
      Add section to this method

      bson-ruby has validation method for ObjectID format as `BSON::ObjectId.legal?(string)` ref: https://github.com/mongodb/bson-ruby/blob/13c42e1ca47f47abdb15485ef5615a9189549a97/lib/bson/object_id.rb#L307-L308

      I'd like to use similar feature in golang.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kachick1@gmail.com Kamiya Kenichi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: