feat: null safety
This commit is contained in:
5
common/pointerOf.go
Normal file
5
common/pointerOf.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package common
|
||||
|
||||
func PointerOf[T any](v T) *T {
|
||||
return &v
|
||||
}
|
||||
Reference in New Issue
Block a user