title: Is there a way to convert a JSON string into a Mongo extended JSON using Go?
body: <p>I have a sample JSON body that contains some strings. I want some of the strings to be converted into Mongo Extended JSON. For example, the JSON body passed in is the following:</p>
  
  <pre><code>{
      "GuidBinary": "734cba69-4851-4869-8d0e-e870d6fb3065",
      "DateTime": "12/12/2012",
      "RegularString": "abcd"
  }
  </code></pre>
  
  <p>And I want to convert this into</p>
  
  <pre><code>{
      "GuidBinary": {
          "$binary": {
              "base64": "&lt;payload&gt;",
              "subType": 0x03
          }
      },
      "DateTime": {"$date": "&lt;ISO-8601 Date/Time Format&gt;"},
      "RegularString": "abcd"
  }
  </code></pre>
  
  <p>Is there a way to do this in Go, either through a package like mongo-go-driver or another method?</p>