mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-22 02:11:46 +08:00
A: go.mod
This commit is contained in:
@@ -279,7 +279,7 @@ var nullBytes = []byte("null")
|
||||
func (id *ObjectId) UnmarshalJSON(data []byte) error {
|
||||
if len(data) > 0 && (data[0] == '{' || data[0] == 'O') {
|
||||
var v struct {
|
||||
Id json.RawMessage `json:"$oid"`
|
||||
Id json.RawMessage `json:"$oid"`
|
||||
Func struct {
|
||||
Id json.RawMessage
|
||||
} `json:"$oidFunc"`
|
||||
|
@@ -58,7 +58,7 @@ func (d Decimal128) String() string {
|
||||
// Bits: 1*sign 2*ignored 14*exponent 111*significand.
|
||||
// Implicit 0b100 prefix in significand.
|
||||
e = int(d.h>>47&(1<<14-1)) - 6176
|
||||
//h = 4<<47 | d.h&(1<<47-1)
|
||||
// h = 4<<47 | d.h&(1<<47-1)
|
||||
// Spec says all of these values are out of range.
|
||||
h, l = 0, 0
|
||||
} else {
|
||||
|
@@ -4,9 +4,10 @@ import (
|
||||
"bytes"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/40t/go-sniffer/plugSrc/mongodb/build/internal/json"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/40t/go-sniffer/plugSrc/mongodb/build/internal/json"
|
||||
)
|
||||
|
||||
// UnmarshalJSON unmarshals a JSON value that may hold non-standard
|
||||
|
Reference in New Issue
Block a user