implement group add/delete routes

This commit is contained in:
2026-03-11 22:12:45 +00:00
parent 322f233718
commit f0f8397d4a
4 changed files with 97 additions and 38 deletions

View File

@@ -5,6 +5,7 @@ import (
"strings"
)
// returns an error if the groupname format was not correct
func ParseGroupname(groupname string) (Groupname, error) {
g := Groupname{}
x := strings.Split(groupname, "-")
@@ -21,6 +22,7 @@ func ParseGroupname(groupname string) (Groupname, error) {
}
}
// returns an error if the username format was not correct
func ParseUsername(username string) (Username, error) {
u := Username{}
x := strings.Split(username, "@")