Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dobyte committed Feb 15, 2022
1 parent 22df6e0 commit ce9cc36
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ import (
)

func main() {
enforcer, err := casbin.NewEnforcer(&casbin.Casbin{
Model: "./example/model.conf",
Debug: false,
Enable: true,
AutoLoad: true,
TableName: "casbin_policy_test",
DatabaseDriver: "mysql",
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",
})

if err != nil {
Expand Down

0 comments on commit ce9cc36

Please sign in to comment.