Add an function to validate objectID format in Go Driver

XMLWordPrintableJSON

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

      Add section to this method

      Show
      Add section to this method
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Kamiya Kenichi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: