mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-02-15 13:33:24 +02:00
24 lines
420 B
Go
24 lines
420 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
|
|
}
|
|
|
|
// TimePtr returns the pointer of a time.Time 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
|
|
}
|