Unify ‘github.com’ wording with code. (#26)
This commit is contained in:
parent
cf4846e6a6
commit
5c9b3fa52c
@ -15,13 +15,13 @@ Gin middleware/handler to enable CORS support.
|
|||||||
Download and install it:
|
Download and install it:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get gopkg.in/gin-contrib/cors.v1
|
$ go get github.com/gin-contrib/cors
|
||||||
```
|
```
|
||||||
|
|
||||||
Import it in your code:
|
Import it in your code:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gopkg.in/gin-contrib/cors.v1"
|
import "github.com/gin-contrib/cors"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Canonical example:
|
### Canonical example:
|
||||||
@ -32,7 +32,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gopkg.in/gin-contrib/cors.v1"
|
"github.com/gin-contrib/cors"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user