-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtemplates.go
More file actions
56 lines (48 loc) · 724 Bytes
/
templates.go
File metadata and controls
56 lines (48 loc) · 724 Bytes
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
48
49
50
51
52
53
54
55
56
package slice
import (
"github.com/clipperhouse/typewriter"
)
// a convenience for passing values into templates; in MVC it'd be called a view model
type model struct {
Type typewriter.Type
SliceName string
// these templates only ever happen to use one type parameter
TypeParameter typewriter.Type
typewriter.TagValue
}
var templates = typewriter.TemplateSlice{
slice,
aggregateT,
all,
any,
average,
averageT,
count,
distinct,
distinctBy,
each,
first,
groupByT,
max,
maxT,
maxBy,
min,
minT,
minBy,
selectT,
single,
sum,
sumT,
where,
sort,
isSorted,
sortDesc,
isSortedDesc,
sortBy,
isSortedBy,
sortByDesc,
isSortedByDesc,
sortImplementation,
sortInterface,
shuffle,
}