mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-15 00:05:04 +02:00
Add "create a page" endpoint
This commit is contained in:
23
util.go
Normal file
23
util.go
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user