package
Version:
v0.0.0-...-7e529c8
Opens a new window with list of versions in this module.
Published: May 12, 2017
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
数据库持久化模块
采用mongodb做后端,存储JSON文档。
Documentation
¶
func C(collection string) (*mgo.Session, *mgo.Collection)
------------------------------------------------ copy connection
!IMPORTANT! NEVER FORGET -----> defer ms.Close() <-----
---------------------------------------------------------- ID GENERATOR
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.