-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pointers.go
31 lines (26 loc) · 931 Bytes
/
Pointers.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
package acquiringsdk
// NewBool returns a pointer for a boolean value.
// This can be used to assign literals to domain or query parameter objects
func NewBool(value bool) *bool {
return &value
}
// NewInt32 returns a pointer for an int32 value.
// This can be used to assign literals to domain or query parameter objects
func NewInt32(value int32) *int32 {
return &value
}
// NewInt64 returns a pointer for an int64 value.
// This can be used to assign literals to domain or query parameter objects
func NewInt64(value int64) *int64 {
return &value
}
// NewFloat64 returns a pointer for a float64 value.
// This can be used to assign literals to domain or query parameter objects
func NewFloat64(value float64) *float64 {
return &value
}
// NewString returns a pointer for a string value.
// This can be used to assign literals to domain or query parameter objects
func NewString(value string) *string {
return &value
}