master v1.0.5
李光春 2 years ago
parent b9968fb9a4
commit 5154d98a88

@ -8,7 +8,7 @@ import (
"go.mongodb.org/mongo-driver/mongo/options"
)
const Version = "1.0.4"
const Version = "1.0.5"
type Client struct {
Db *mongo.Client // 驱动

@ -0,0 +1 @@
package gomongo

@ -0,0 +1,10 @@
package gomongo
import "encoding/json"
// JsonDecodeNoError Json解码不报错
func JsonDecodeNoError(b []byte) map[string]interface{} {
var data map[string]interface{}
_ = json.Unmarshal(b, &data)
return data
}

@ -0,0 +1 @@
package gomongo
Loading…
Cancel
Save