core/internal/domain/null.go
Dawid Wysokiński ac18ea66eb
All checks were successful
ci/woodpecker/pr/govulncheck Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
feat: api - extend player schema
2024-02-28 07:54:46 +01: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]