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

XMLWordPrintableJSON

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

       

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

              Created:
              Updated:
              Resolved: