Adding upstream version 0.28.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
88f1d47ab6
commit
e28c88ef14
933 changed files with 194711 additions and 0 deletions
8
tools/types/types.go
Normal file
8
tools/types/types.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
// 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue