core/internal/domain/null.go
Dawid Wysokiński 0be010ab50
All checks were successful
ci/woodpecker/push/govulncheck Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
feat: api - extend player schema (#8)
Reviewed-on: twhelp/corev3#8
2024-02-28 06:59:10 +00:00

17 lines
258 B
Go

package domain
import "time"
type NullValue[T any] struct {
V T
Valid bool // Valid is true if V is not NULL
}
type NullInt = NullValue[int]
type NullString = NullValue[string]
type NullBool = NullValue[bool]
type NullTime = NullValue[time.Time]