Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 578 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 578 Bytes

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]]