-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuiltin.go
115 lines (96 loc) · 2.35 KB
/
builtin.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package pt
// Deprecated: use P with generics in go1.18+
// Bool returns pointer of bool
func Bool(v bool) *bool {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uint8 returns pointer of uint8
func Uint8(v uint8) *uint8 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uint16 returns pointer of uint16
func Uint16(v uint16) *uint16 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uint32 returns pointer of uint32
func Uint32(v uint32) *uint32 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uint64 returns pointer of uint64
func Uint64(v uint64) *uint64 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Int8 returns pointer of int8
func Int8(v int8) *int8 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Int16 returns pointer of int16
func Int16(v int16) *int16 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Int32 returns pointer of int32
func Int32(v int32) *int32 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Int64 returns pointer of int64
func Int64(v int64) *int64 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Float32 returns pointer of float32
func Float32(v float32) *float32 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Float64 returns pointer of float64
func Float64(v float64) *float64 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Complex64 returns pointer of complex64
func Complex64(v complex64) *complex64 {
return &v
}
// Deprecated: use P with generics in go1.18+
// Complex128 returns pointer of complex128
func Complex128(v complex128) *complex128 {
return &v
}
// Deprecated: use P with generics in go1.18+
// String returns pointer of string
func String(v string) *string {
return &v
}
// Deprecated: use P with generics in go1.18+
// Int returns pointer of int
func Int(v int) *int {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uint returns pointer of uint
func Uint(v uint) *uint {
return &v
}
// Deprecated: use P with generics in go1.18+
// Uintptr returns pointer of uintptr
func Uintptr(v uintptr) *uintptr {
return &v
}
// Deprecated: use P with generics in go1.18+
// Byte returns pointer of byte
func Byte(v byte) *byte {
return &v
}
// Deprecated: use P with generics in go1.18+
// Rune returns pointer of rune
func Rune(v rune) *rune {
return &v
}