We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22df6e0 commit ce9cc36Copy full SHA for ce9cc36
README.md
@@ -24,14 +24,13 @@ import (
24
)
25
26
func main() {
27
- enforcer, err := casbin.NewEnforcer(&casbin.Casbin{
28
- Model: "./example/model.conf",
29
- Debug: false,
30
- Enable: true,
31
- AutoLoad: true,
32
- TableName: "casbin_policy_test",
33
- DatabaseDriver: "mysql",
34
- DatabaseSource: "root:123456@tcp(127.0.0.1:3306)/casbin_test",
+ enforcer, err := casbin.NewEnforcer(&casbin.Options{
+ Model: "./example/model.conf",
+ Debug: false,
+ Enable: true,
+ AutoLoad: true,
+ DbTable: "casbin_policy_test",
+ DbLink: "mysql:root:123456@tcp(127.0.0.1:3306)/topic1",
35
})
36
37
if err != nil {
0 commit comments