-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstruct.go
More file actions
44 lines (42 loc) · 1020 Bytes
/
struct.go
File metadata and controls
44 lines (42 loc) · 1020 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
package example
//TestValue some test type
//go:generate nicecache -cacheSize=10000000 -type=TestValue
type TestValue struct {
ID string
N uint32
Stat uint32
Published bool
Deprecated *bool
System uint32
Subsystem uint32
ParentID string
Name string
Name2 string
Description string
Description2 string
CreatedBy uint32
UpdatedBy *uint32
List1 []uint32
List2 []uint32
Items []TestItem
}
//TestItem some test type to test cache in different package
//go:generate nicecache -type=TestItem -cacheSize=10000000 -cachePackage=nicecache/example/repository
type TestItem struct {
ID string
N uint32
Stat uint32
Published bool
Deprecated *bool
System uint32
Subsystem uint32
ParentID string
Name string
Name2 string
Description string
Description2 string
CreatedBy uint32
UpdatedBy *uint32
List1 []uint32
List2 []uint32
}