mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-08 23:20:01 +00:00
13 lines
352 B
Go
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 }
|