Files
Server/internal/gentools/ptr.go
T
2022-08-19 10:55:29 +02:00

11 lines
123 B
Go

package gentools
func Ptr[T any](t T) *T {
return &t
}
func ShallowCopy[T any](t *T) *T {
tCopy := *t
return &tCopy
}