Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package generic |
||
2 | |||
3 | var ( |
||
4 | nilInt *int64 |
||
5 | nilUint *uint64 |
||
6 | nilFloat *float64 |
||
7 | ) |
||
8 | |||
9 | func uintPointer(u uint) *uint { |
||
10 | return &u |
||
11 | } |
||
12 | |||
13 | func intPointer(i int) *int { |
||
14 | return &i |
||
15 | } |
||
16 | |||
17 | func floatPointer(f float64) *float64 { |
||
18 | return &f |
||
19 | } |
||
20 | |||
21 | func stringPointer(s string) *string { |
||
22 | return &s |
||
23 | } |
||
24 | |||
25 | type mapKey struct { |
||
26 | Key string |
||
27 | } |
||
28 | |||
29 | type testInterface interface { |
||
30 | Do() error |
||
31 | } |
||
32 |