我正在尝试在MongoDB网格fs上工作,我是新手。我找到了在线资源,使gridfs在golang中工作,我找到了这篇文章。当我获取代码并尝试运行它时,它给了我以下错误。
错误
could not import go.mongodb.org/mongo-driver/mongo/gridfs (cannot find package "go.mongodb.org/mongo-driver/mongo/gridfs" in any of
/usr/local/go/src/go.mongodb.org/mongo-driver/mongo/gridfs (from $GOROOT)
/home/bilal/go/src/go.mongodb.org/mongo-driver/mongo/gridfs (from $GOPATH))
图书馆
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/gridfs"
"go.mongodb.org/mongo-driver/mongo/options"
这四个库给了我这个错误。但我只举了一个错误的例子。
蝴蝶不菲
相关分类