/go-casbin-example

An example of using Casbin to implement a role-based access control system

Primary LanguageGo

Go Casbin Example

This repository contains an example of using the Go Casbin client to implement a simple role-based access control system for two users, Alice and Bob.

$ go run main.go
alice is a member of the following roles: [role:admin], and her permissions are: [[role:admin data read] [role:admin data write]]
bob is a member of the following roles: [role:user], and his permissions are: [[role:user data read]]