twitch-bot/internal/helpers/ptr.go

5 lines
98 B
Go
Raw Permalink Normal View History

package helpers
// Ptr creates a pointer to any given type
func Ptr[T any](v T) *T { return &v }