Navigation Menu

Skip to content

Casbin 2.0.0

Compare
Choose a tag to compare
@hsluoyz hsluoyz released this 12 Jul 13:03

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