Better caldav support (#73)
This commit is contained in:
8
vendor/github.com/samedi/caldav-go/lib/components.go
generated
vendored
Normal file
8
vendor/github.com/samedi/caldav-go/lib/components.go
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
package lib
|
||||
|
||||
const (
|
||||
VCALENDAR = "VCALENDAR"
|
||||
VEVENT = "VEVENT"
|
||||
VJOURNAL = "VJOURNAL"
|
||||
VTODO = "VTODO"
|
||||
)
|
10
vendor/github.com/samedi/caldav-go/lib/paths.go
generated
vendored
Normal file
10
vendor/github.com/samedi/caldav-go/lib/paths.go
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func ToSlashPath(path string) string {
|
||||
cleanPath := filepath.Clean(path)
|
||||
return filepath.ToSlash(cleanPath)
|
||||
}
|
18
vendor/github.com/samedi/caldav-go/lib/strbuff.go
generated
vendored
Normal file
18
vendor/github.com/samedi/caldav-go/lib/strbuff.go
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type StringBuffer struct {
|
||||
buffer bytes.Buffer
|
||||
}
|
||||
|
||||
func (b *StringBuffer) Write(format string, elem ...interface{}) {
|
||||
b.buffer.WriteString(fmt.Sprintf(format, elem...))
|
||||
}
|
||||
|
||||
func (b *StringBuffer) String() string {
|
||||
return b.buffer.String()
|
||||
}
|
Reference in New Issue
Block a user