Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tree ¶
```yaml permissions:
users: write: - owner read: pets: - write - read
```
Output:
tree := Tree{ "users": { "write": { "owner": {} }, "read": {} }, "pets": { "write": {}, "read": {}, } }
Identifiers:
users:write users:write:owner users:read pets:write pets:read
Resolving:
func (Tree) InsertPath ¶
func (Tree) IsFinalLeave ¶
IsFinalLeave returns true if this tree node is the final leave. That means that there are not further sub-permissions for this node.
func (*Tree) UnmarshalJSON ¶
UnmarshalJSON implements the encoding/json.Unmarshaler interface and adds support to parse a Tree node from an object (Tree) or string list.
Click to show internal directories.
Click to hide internal directories.