mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +00:00
15 lines
448 B
Go
15 lines
448 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
var (
|
|
ptrBoolFalse = ptrBool(false)
|
|
ptrInt64Zero = ptrInt64(0)
|
|
ptrStringEmpty = ptrString("")
|
|
)
|
|
|
|
func ptrBool(v bool) *bool { return &v }
|
|
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 }
|