Online Editor
คุณยังสามารถใช้ online editor เพื่อเขียนโมเดลและนโยบาย Casbin ในเว็บเบราว์เซอร์ของคุณได้ มันมีฟังก์ชันการทำงานเช่น "syntax highlighting" และ "code completion" เหมือนกับ IDE สำหรับภาษาโปรแกรม
Use Custom Functions
If you need to use a customized matching function (e.g. "RBAC with Patterns"), you can add it by clicking the "Add Role Matching" button at the bottom left corner of the editor.
.
หากคุณต้องการเขียนโค้ดที่เทียบเท่า คุณจำเป็นต้องระบุฟังก์ชันการจับคู่รูปแบบผ่าน API ที่เกี่ยวข้อง อ้างอิงไปที่ RBAC with Pattern เพื่อข้อมูลเพิ่มเติม
The editor supports multiple Casbin implementations, including Node-Casbin (Node.js), JCasbin (Java), Casbin (Go), and Casbin-rs (Rust). You can switch between different implementations in the upper right corner to test your model and policy.
Although the editor validates through a remote CLI, due to environment differences, the validation results may differ slightly from the results you get in your local environment. If you encounter any issues, please submit them to the corresponding Casbin implementation repository.