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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.1.0
    • BSON
    • None
    • go version go1.12.4 windows/amd64

    Description

       

      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

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: