-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
47 lines (42 loc) · 898 Bytes
/
main.go
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 main
func main() {
/*
var t kendo.GoTemplate = kendo.GoTemplate{}
type dataToJSon struct{
Nome string
Idade int
}
//ds := kendo.NewDataSource( t )
a := kendo.AggregateList{
Aggregate: kendo.AGGREGATE_AVERAGE,
Field: "name",
Template: &t,
}
fmt.Print( a.String() )
ds := kendo.DataSource{
Aggregate: []kendo.AggregateList{
{
Aggregate: kendo.AGGREGATE_AVERAGE,
Field: "name",
Template: &t,
},
{
Aggregate: kendo.AGGREGATE_AVERAGE,
Field: "name",
Template: &t,
},
{
Aggregate: kendo.AGGREGATE_AVERAGE,
Field: "name",
Template: &t,
},
},
AutoSync: true,
Batch: true,
Data: kendo.ComplexJavaScriptType{
AsJSon: []dataToJSon{ { "José", 20 }, { "Maria", 30 } },
},
}
fmt.Printf( "r: %s\n", ds.String() )
*/
}