lang: types: Add some helpful true and false values

In case we need one, we don't need to build it.
This commit is contained in:
James Shubin
2025-03-06 16:54:46 -05:00
parent f792facde9
commit b5ae96e0d4

View File

@@ -50,6 +50,12 @@ var (
// ErrInvalidValue is returned when ValueOf() is called on an invalid or
// zero reflect.Value.
ErrInvalidValue = errors.New("cannot represent invalid reflect.Value")
// ValueFalse is a false value in our system. Can be used where needed.
ValueFalse, _ = ValueOfGolang(false)
// ValueTrue is a true value in our system. Can be used where needed.
ValueTrue, _ = ValueOfGolang(true)
)
// Value represents an interface to get values out of each type. It is similar