You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go-pg Adapter is the [Go-pg](https://github.com/go-pg/pg) adapter for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load policy from PostgreSQL or save policy to it.
7
7
8
8
## Installation
9
9
10
-
go get github.com/casbin/casbin-pg-adapter
10
+
go get github.com/apache/casbin-pg-adapter
11
11
12
12
## Simple Postgres Example
13
13
14
14
```go
15
15
package main
16
16
17
17
import (
18
-
pgadapter "github.com/casbin/casbin-pg-adapter"
18
+
pgadapter "github.com/apache/casbin-pg-adapter"
19
19
"github.com/casbin/casbin/v2"
20
20
)
21
21
@@ -63,7 +63,7 @@ package main
63
63
64
64
import (
65
65
"github.com/casbin/casbin/v2"
66
-
pgadapter "github.com/casbin/casbin-pg-adapter"
66
+
pgadapter "github.com/apache/casbin-pg-adapter"
67
67
)
68
68
69
69
funcmain() {
@@ -87,7 +87,7 @@ package main
87
87
88
88
import (
89
89
"github.com/casbin/casbin/v2"
90
-
pgadapter "github.com/casbin/casbin-pg-adapter"
90
+
pgadapter "github.com/apache/casbin-pg-adapter"
91
91
"github.com/go-pg/pg/v9"
92
92
)
93
93
@@ -109,7 +109,7 @@ func main() {
109
109
110
110
## Debug tests
111
111
112
-
docker-compose run --rm go dlv test github.com/casbin/casbin-pg-adapter
112
+
docker-compose run --rm go dlv test github.com/apache/casbin-pg-adapter
0 commit comments