ExportXMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      This library includes a RawLookup() generic function that conveniently does LookupErr() plus a Go type conversion. This makes it really easy to extract a value from a Raw document.

      It’d be sweet if the driver had something equivalent for Go 1.27+, e.g.:

      num, err := doc.ExtractErr[int64]("path", "to", "num")
      

      Build tags would avoid breaking Go 1.26 & prior.

            Assignee:
            Unassigned
            Reporter:
            Felipe Gasper
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: