2021-05-15 13:42:01 +02:00
|
|
|
package notion
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// StringPtr returns the pointer of a string value.
|
|
|
|
func StringPtr(s string) *string {
|
|
|
|
return &s
|
|
|
|
}
|
|
|
|
|
|
|
|
// IntPtr returns the pointer of an int value.
|
|
|
|
func IntPtr(i int) *int {
|
|
|
|
return &i
|
|
|
|
}
|
|
|
|
|
2021-05-22 20:57:19 +09:00
|
|
|
// BoolPtr returns the pointer of a bool value.
|
2021-05-15 13:42:01 +02:00
|
|
|
func BoolPtr(b bool) *bool {
|
|
|
|
return &b
|
|
|
|
}
|
|
|
|
|
|
|
|
// TimePtr returns the pointer of a time.Time value.
|
|
|
|
func TimePtr(t time.Time) *time.Time {
|
|
|
|
return &t
|
|
|
|
}
|
2021-05-24 16:33:03 +02:00
|
|
|
|
|
|
|
// Float64Ptr returns the pointer of a float64 value.
|
|
|
|
func Float64Ptr(f float64) *float64 {
|
|
|
|
return &f
|
|
|
|
}
|