twitch-bot/internal/helpers/ptr.go
Knut Ahlers 30482591a7
[core] Switch to go_helpers FieldCollection
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00

4 lines
98 B
Go

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