2020
12-27
12-27
详解Golang使用MongoDB通用操作
MongoDB是Nosql中常用的一种数据库,今天笔者就简单总结一下Golang如何使用这些通用的供能的,不喜勿喷。。。 研究的事例结构如下:typeLikeBeststruct{AuthorNamestring`bson:"authorname,omitempty"`BookNamestring`bson:"bookname,omitempty"`PublishTimestring`bson:"publishtime,omitempty"`LastReadTimestring`bson:"lastreadtime,omitempty"`}typePersonnalstruct{UserN...
继续阅读 >