mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
create the new FileServer and HandleDir, deprecate the rest APIBuilder/Party static methods and more
relative: https://github.com/kataras/iris/issues/1283 and removing pongo2 from vendor: https://github.com/kataras/iris/issues/1284 Former-commit-id: 3ec57b349f99faca2b8e36d9f7252db0b6ea080d
This commit is contained in:
@@ -8,7 +8,7 @@ Article is coming soon, follow and stay tuned
|
||||
Read [the fully functional example](main.go).
|
||||
|
||||
```sh
|
||||
$ go get -u github.com/mongodb/mongo-go-driver
|
||||
$ go get -u go.mongodb.org/mongo-driver/...
|
||||
$ go get -u github.com/joho/godotenv
|
||||
```
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
// go get -u github.com/mongodb/mongo-go-driver
|
||||
// go get -u go.mongodb.org/mongo-driver
|
||||
// go get -u github.com/joho/godotenv
|
||||
|
||||
import (
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
"github.com/kataras/iris"
|
||||
|
||||
"github.com/mongodb/mongo-go-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
)
|
||||
|
||||
const version = "0.0.1"
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/mongodb/mongo-go-driver/bson"
|
||||
"github.com/mongodb/mongo-go-driver/bson/primitive"
|
||||
"github.com/mongodb/mongo-go-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
// up to you:
|
||||
// "github.com/mongodb/mongo-go-driver/mongo/options"
|
||||
// "go.mongodb.org/mongo-driver/mongo/options"
|
||||
)
|
||||
|
||||
type Movie struct {
|
||||
|
||||
Reference in New Issue
Block a user