This commit is contained in:
Melody Becker 2024-11-07 16:27:46 +01:00
parent a8abfb2219
commit 25243b3a9d
3 changed files with 113 additions and 5 deletions

View file

@ -1,3 +1,12 @@
/*
Tool for generating helper functions for storage.Role structs inside of the storage package
It generates the following functions:
- CollapseRolesIntoOne: Collapse a list of roles into one singular role. Each value will be set to the
value of the role with the highest priority
- RoleDeepCopy: Copy a role, including all arrays. Every value will be copied too
- CompareRoles: Compare two roles. Returns true only if all fields are equal
(if one of the fields is nil, that field is seen as equal)
*/
package main
import (