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

How to use interface type as a model in mongo-go-driver

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.0
    • Component/s: BSON
    • Labels:
      None
    • Environment:
      go version go1.12.4 windows/amd64

       

      why mongo-go-driver can't auto marshal a interface ?

       
      when i use mgo , it can auto marshal a interface.

      see detail here:

      https://stackoverflow.com/questions/57667653/how-to-use-interface-type-as-a-model-in-mongo-go-driver

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            xtutu0202@gmail.com x tutu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: