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

Add namespace type for options in mongo package.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.2
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently the documentation for the options is the first thing in godoc and there isn't an explanation of what they are. Add a type (potentially Options) to namespace the options together. Then add a global variable (mongo.O or mongo.Opt) so that users can access them. This will change things from mongo.AllowDiskUse(true) to mongo.Opt.AllowDiskUse(true).

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: