feat: null safety

This commit is contained in:
2024-12-29 16:35:38 +07:00
commit b32eafb43d
13 changed files with 249 additions and 0 deletions

5
common/pointerOf.go Normal file
View File

@@ -0,0 +1,5 @@
package common
func PointerOf[T any](v T) *T {
return &v
}