mirror of
https://github.com/pocketbase/pocketbase.git
synced 2024-11-25 17:21:58 +02:00
9 lines
215 B
Go
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
|
|
}
|