mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 23:50:04 +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 }
|