-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
package activitypub
type Collection struct {
*BaseObject
Summary string
TotalItems int
Items ItemCollection
Current Page
First Page
Last Page
Next Page
Prev Page
}
type OrderedCollection struct {
*BaseObject
*CollectionPage
Summary string
TotalItems int
OrderedItems ItemCollection
}
type Page Url
type CollectionPage struct {
Current Page
First Page
Last Page
Next Page
Prev Page
}
//
//
//func Test() {
// o := &BaseObject{
// Id: "test",
// }
// p := &CollectionPage{Current: "http://localhost"}
// t := &OrderedCollection{
// BaseObject: o,
// CollectionPage: p,
// Summary: "tes",
// }
//
// fmt.Print(t)
//}