feat: implement caldav search
This commit is contained in:
1 parent
f9e8f4b9c1
commit
d7191461eb
57 files changed
+3893
-20
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
package values
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var _ = log.Print
|
||||
|
||||
type CSV []string
|
||||
|
||||
func (csv *CSV) EncodeICalValue() (string, error) {
|
||||
return strings.Join(*csv, ","), nil
|
||||
}
|
||||
|
||||
func (csv *CSV) DecodeICalValue(value string) error {
|
||||
value = strings.TrimSpace(value)
|
||||
*csv = CSV(strings.Split(value, ","))
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewCSV(items ...string) *CSV {
|
||||
return (*CSV)(&items)
|
||||
}
|
||||
Reference in new issue
Block a user