Files
opencloud/services/groupware/pkg/groupware/tools.go
T
Pascal Bleser 2883f04488 groupware: refactoring using function templates
* adds creating addressbooks, calendars, mailboxes

 * adds deleting mailbox, event, identity

 * adds modifying an email

 * introduce template functions for the Groupware API in templates.go,
   and use those in route function implementations whenever possible

 * add capability checking for mail, quota, blobs

 * adds Changes interface

 * adds JmapResponse interface
2026-04-30 10:51:45 +02:00

21 lines
374 B
Go

package groupware
import (
"iter"
"strings"
"github.com/opencloud-eu/opencloud/pkg/structs"
)
func ptr[T any](t T) *T {
return &t
}
func trimmed(it iter.Seq[string]) iter.Seq[string] {
return structs.MapSeq(it, strings.TrimSpace)
}
func notEmptyString(it iter.Seq[string]) iter.Seq[string] {
return structs.FilterSeq(it, func(s string) bool { return s != "" })
}