Bonus Fields Need *int not any

This commit is contained in:
2025-03-24 23:06:00 +00:00
parent bbab439115
commit 09b2ad8c56

8
helpers/nullable.go Normal file
View File

@@ -0,0 +1,8 @@
package helpers
func Nullable(val int) *int {
if val == 0 {
return nil
}
return &val
}