Casbin 2.0.0
Breaking Change !
- Add
error
as return value for nearly all functions (API & non-API). See: ce253cf and 2cd38e8 - The Safe functions like
NewEnforcerSafe()
are removed, as all the functions start to return error now.
A lot of projects that use Casbin latest version may need to update their code, sorry for the disturbance. If can still use Casbin v1.x versions with vgo to use the old calls.
Casbin 2.x starts to support Go Modules, so please use Go Modules to upgrade to Casbin 2.x. If you are still using the deprecated go get xxx
way, you may only see 1.x version. See for details: #267