globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

add NewMongoTimestamp() and MongoTimestamp.Time(),Counter() #171

Closed gedge closed 6 years ago

gedge commented 6 years ago

code taken from / inspired by https://github.com/go-mgo/mgo/pull/202

credit to @niemeyer @mwmahlberg and @zph

domodwyer commented 6 years ago

Hey @gedge

Looks good, thanks for opening a PR!

Dom