15 lines
292 B
Go
15 lines
292 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"git.sapphic.engineer/roleypoly/v4/types"
|
|
)
|
|
|
|
func RoleInputID(c *types.Category, r *types.Role) string {
|
|
return fmt.Sprintf("category-%s_role-%s", c.ID, r.ID)
|
|
}
|
|
|
|
func RoleInputName(c *types.Category) string {
|
|
return fmt.Sprintf("category_group_%s", c.ID)
|
|
}
|