Files
website/internal/helpers/nullable.go

9 lines
93 B
Go

package helpers
func Nullable(val int) *int {
if val == 0 {
return nil
}
return &val
}