Skip to content

Commit

Permalink
Merge pull request #7 from gin-contrib/new
Browse files Browse the repository at this point in the history
Updates README
  • Loading branch information
javierprovecho committed Oct 31, 2016
2 parents 9726988 + 764baef commit 0202b02
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 0202b02

Please sign in to comment.