mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 10:21:22 +00:00
12 lines
289 B
Go
12 lines
289 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 }
|