forked from danopstech/octopusenergy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert_types.go
33 lines (28 loc) · 898 Bytes
/
convert_types.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
package octopusenergy
import (
"time"
)
// String returns a pointer to the string value passed in.
// This is a helper function when you need to provide pointers to
// optional fields in the input options object.
func String(v string) *string {
return &v
}
// Int returns a pointer to the int value passed in.
// This is a helper function when you need to provide pointers to
// optional fields in the input options object.
func Int(v int) *int {
return &v
}
// Bool returns a pointer to the bool value passed in.
// This is a helper function when you need to provide pointers to
// optional fields in the input options object.
func Bool(v bool) *bool {
return &v
}
// Time returns a pointer to the time.Time value passed in.
// This is a helper function when you need to provide pointers to
// optional fields in the input options object.
func Time(v time.Time) *time.Time {
return &v
}