mongodb-go-tutorial icon indicating copy to clipboard operation
mongodb-go-tutorial copied to clipboard

expects import "go.mongodb.org/mongo-driver/mongo"

Open xyths opened this issue 5 years ago • 1 comments

main.go:8:2: code in directory $GOPATH/src/github.com/mongodb/mongo-go-driver/mongo expects import "go.mongodb.org/mongo-driver/mongo"

seem code moved from "go.mongodb.org/mongo-driver" to "github.com/mongodb/mongo-go-driver/"?

xyths avatar May 07 '19 03:05 xyths

You should import "go.mongodb.org/mongo-driver" instead of "github.com/mongodb/mongo-go-driver". See if it works?

WuShaoQiang avatar May 10 '19 13:05 WuShaoQiang