mirror of
https://github.com/dstotijn/go-notion.git
synced 2024-11-28 08:58:51 +02:00
e5130d1fde
Fixes #11
29 lines
521 B
Go
29 lines
521 B
Go
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
|
|
}
|
|
|
|
// BoolPtr returns the pointer of a bool value.
|
|
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
|
|
}
|
|
|
|
// Float64Ptr returns the pointer of a float64 value.
|
|
func Float64Ptr(f float64) *float64 {
|
|
return &f
|
|
}
|