Skip to content

Commit 3cfd691

Browse files
authored
Merge pull request #13 from vgarvardt/patch/match-oauth-version
Match parent library major version
2 parents ba93ce6 + 8c5fe94 commit 3cfd691

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77

88
## Install
99

10+
Storage major version matches [OAuth 2.0](https://github.com/go-oauth2/oauth2) major version,
11+
so use corresponding version (go modules compliant)
12+
13+
For `gopkg.in/oauth2.v3`:
14+
1015
```bash
11-
$ go get -u github.com/vgarvardt/go-oauth2-pg
16+
$ go get -u github.com/vgarvardt/go-oauth2-pg/v3
1217
```
1318

1419
## PostgreSQL drivers
@@ -26,7 +31,7 @@ import (
2631
"time"
2732

2833
"github.com/jackc/pgx/v4"
29-
pg "github.com/vgarvardt/go-oauth2-pg"
34+
pg "github.com/vgarvardt/go-oauth2-pg/v3"
3035
"github.com/vgarvardt/go-pg-adapter/pgx4adapter"
3136
"gopkg.in/oauth2.v3/manage"
3237
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/vgarvardt/go-oauth2-pg
1+
module github.com/vgarvardt/go-oauth2-pg/v3
22

33
go 1.14
44

0 commit comments

Comments
 (0)