Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5837

Golang Export to Language improvements

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.32.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Iteration Barnacle
    • Not Needed

      Follow up to the support for Golang in Export to Language:

      • the URL in ApplyURI is always "localhost", in the other languages we pass that value as a variable somehow so it reflects the current connection
      • the import: "go.mongodb.org/mongo-driver/mongo/options" is missing with the generated code
      • Missing struct initialization: primitive.Null -> primitive.Null{} and primitive.Undefined -> primitive.Undefined{}
      • The generated code makes vet complain about: "go.mongodb.org/mongo-driver/bson/primitive.E composite literal uses unkeyed fields"

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: