1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-25 17:21:58 +02:00
pocketbase/tools/types/types.go
2022-10-30 10:28:14 +02:00

9 lines
215 B
Go

// Package types implements some commonly used db serializable types
// like datetime, json, etc.
package types
// Pointer is a generic helper that returns val as *T.
func Pointer[T any](val T) *T {
return &val
}