Skip to content

Instantly share code, notes, and snippets.

@shellmanme
shellmanme / main.go
Created Nov 22, 2018
mongo-go-driver Demo
View main.go
package main
import (
"context"
"github.com/mongodb/mongo-go-driver/bson"
"github.com/mongodb/mongo-go-driver/bson/objectid"
"github.com/mongodb/mongo-go-driver/bson/primitive"
"github.com/mongodb/mongo-go-driver/mongo"
"log"
"time"