mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-12 22:39:34 -05:00
2883f04488
* 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
21 lines
374 B
Go
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 != "" })
|
|
}
|