discord-community/helpers.go
Knut Ahlers fa6997f684
Extract Twitch API calls to extra module
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-07-29 21:13:19 +02:00

13 lines
352 B
Go

package main
import "time"
var (
ptrInt64Zero = ptrInt64(0)
ptrStringEmpty = ptrString("")
)
func ptrDuration(v time.Duration) *time.Duration { return &v }
func ptrInt64(v int64) *int64 { return &v }
func ptrString(v string) *string { return &v }
func ptrTime(v time.Time) *time.Time { return &v }