casbin (https://github.com/casbin/casbin) is a powerful and efficient open-source access control library for Golang projects. It provides support for enforcing authorization based on various models. By far, the access control models supported by casbin are:
write-article, read-log. It doesn't control the access to a specific article or log.What casbin does:
{subject, object, action} form or a customized form as you defined.root or administrator. A superuser can do anything without explict permissions.keyMatch can map a resource key /foo/bar to the pattern /foo*.What casbin does NOT do:
username and password when a user logs in)go get github.com/casbin/casbin