core/internal/domain/null.go
2023-12-24 10:44:20 +00:00

13 lines
209 B
Go

package domain
type NullValue[T any] struct {
Value T
Valid bool // Valid is true if Value is not NULL
}
type NullInt = NullValue[int]
type NullString = NullValue[string]
type NullBool = NullValue[bool]