Passed
Push — main ( add42e...815f74 )
by Rushan
02:28 queued 12s
created

generic.floatPointer   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
c 0
b 0
f 0
rs 10
nop 1
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