You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the issue tracker to track bugs with mgo - if you have a usage question,
it's best to try Stack Overflow :)
Replace this text with your description, and please answer the questions below
before submitting your issue to help us out. Thanks!
What version of MongoDB are you using (mongod --version)?
mongodb version 4.2.2
What version of Go are you using (go version)?
go version go1.13.4 darwin/amd64
What operating system and processor architecture are you using (go env)?
<go env here>
What did you do?
If possible, provide a recipe for reproducing the error.
A runnable program is great and really helps!
Can you reproduce the issue on the latest development branch?
type Comment struct {
ID bson.ObjectId `json:"id" bson:"_id,omitempty"` //主键id
CreatedTime time.Time `json:"created_time" bson:"ct,omitempty"`
UpdatedTime time.Time `json:"updated_time" bson:"ut,omitempty"`
}
yeah, i insert to mongodb with this struct,when query from db the CreatedTime field is still ISOTime,not parse auto, but use "gopkg.in/mgo.v2" it's ok.......so odd....
The text was updated successfully, but these errors were encountered:
We use the issue tracker to track bugs with mgo - if you have a usage question,
it's best to try Stack Overflow :)
Replace this text with your description, and please answer the questions below
before submitting your issue to help us out. Thanks!
What version of MongoDB are you using (
mongod --version
)?What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A runnable program is great and really helps!
Can you reproduce the issue on the latest
development
branch?yeah, i insert to mongodb with this struct,when query from db the CreatedTime field is still ISOTime,not parse auto, but use "gopkg.in/mgo.v2" it's ok.......so odd....
The text was updated successfully, but these errors were encountered: