Documentation
¶
Overview ¶
Package policy embedding the policy files for Casbin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPolicy ¶
MustPolicy reads and returns the contents of a policy file from the embedded file system.
Note: This function is identical to Policy and may be removed in the future.
Args:
name (string): The name of the policy file to read.
Returns:
([]byte, error): The contents of the policy file as a byte slice, or an error if the file does not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.