mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-11 06:29:15 -06:00
groupware: convert documentation to proper markdown
This commit is contained in:
File diff suppressed because it is too large
Load Diff
28
pkg/jmap/jscontact_model_examples_test.go
Normal file
28
pkg/jmap/jscontact_model_examples_test.go
Normal file
@@ -0,0 +1,28 @@
|
||||
//go:build groupware_examples
|
||||
|
||||
package jmap
|
||||
|
||||
import c "github.com/opencloud-eu/opencloud/pkg/jscontact"
|
||||
|
||||
func JSContactExample() {
|
||||
SerializeExamples(JSContactExemplarInstance)
|
||||
//Output:
|
||||
}
|
||||
|
||||
type JSContactExemplar struct {
|
||||
}
|
||||
|
||||
var JSContactExemplarInstance = JSContactExemplar{}
|
||||
|
||||
func (e JSContactExemplar) Name() c.Name {
|
||||
return c.Name{
|
||||
Type: c.NameType,
|
||||
Components: []c.NameComponent{
|
||||
{Type: c.NameComponentType, Value: "Drummer", Kind: c.NameComponentKindGiven},
|
||||
{Type: c.NameComponentType, Value: "Camina", Kind: c.NameComponentKindGiven},
|
||||
},
|
||||
IsOrdered: true,
|
||||
DefaultSeparator: ", ",
|
||||
Full: "Camina Drummer",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user