mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-22 04:55:06 +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"`
|
||||
|
Reference in New Issue
Block a user