discord-community/helpers.go

14 lines
352 B
Go
Raw Normal View History

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 }