Registry / database / v2-mgo

v2-mgo

JSON →
library0.0.0-20140701140051-000000000287gogounverified

Package mgo offers a rich MongoDB driver for Go.

go get labix.org/v2/mgo
INSTALL
IMPORT
SIG · V2-MGO
V
v2-mgo
databasegov0.0.0-20140701140051-000000000287
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mgo
labix.org/v2/mgo

Connects to a local MongoDB instance using the mgo driver.

package main import ( "fmt" "labix.org/v2/mgo" ) func main() { session, err := mgo.Dial("localhost") if err != nil { panic(err) } defer session.Close() fmt.Println("Connected to MongoDB") }
Debug
Known issues
breakingmgo is deprecated; use the official MongoDB Go driver (go.mongodb.org/mongo-driver) instead.
fix
Replace with go.mongodb.org/mongo-driver/mongo.
affects: *
Upgrade
Version history
0.0.0-20140701140051-000000000287latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
22
Meta
2
OpenAI (training)
2
Resources
v2-mgo — go get v2-mgo · libregistry