1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-02-15 13:33:24 +02:00
go-notion/util.go
2021-05-15 13:42:01 +02:00

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
}