update readme for relase v1.0
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
9726988c57
commit
764baefb88
16
README.md
16
README.md
@ -11,6 +11,20 @@ Gin middleware/handler to enable CORS support.
|
||||
|
||||
## Usage
|
||||
|
||||
### Start using it
|
||||
|
||||
1. Download and install it:
|
||||
|
||||
```sh
|
||||
$ go get gopkg.in/gin-contrib/cors.v1
|
||||
```
|
||||
|
||||
2. Import it in your code:
|
||||
|
||||
```go
|
||||
import "gopkg.in/gin-contrib/cors.v1"
|
||||
```
|
||||
|
||||
### Canonical example:
|
||||
|
||||
```go
|
||||
@ -19,7 +33,7 @@ package main
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"gopkg.in/gin-contrib/cors.v1"
|
||||
"gopkg.in/gin-gonic/gin.v1"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"gopkg.in/gin-contrib/cors.v1"
|
||||
"gopkg.in/gin-gonic/gin.v1"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user