From 63c28cbb9e4460eeab83817baed85cfca25fd838 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 1 Sep 2024 19:24:45 +0200 Subject: [PATCH] Add nullable unsigned integer types Introduced new types: NilUInt, NilUInt8, NilUInt16, NilUInt32, and NilUInt64 to support nullable unsigned integers. This enhancement aligns with existing nullable types for better consistency and flexibility. --- niljson.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/niljson.go b/niljson.go index 527907c..ccd795a 100644 --- a/niljson.go +++ b/niljson.go @@ -53,6 +53,21 @@ type NilInt = Variable[int] // NilInt64 is an int64 type that can be nil type NilInt64 = Variable[int64] +// NilUInt is an uint type that can be nil +type NilUInt = Variable[uint] + +// NilUInt8 is an uint8 type that can be nil +type NilUInt8 = Variable[uint8] + +// NilUInt16 is an uint16 type that can be nil +type NilUInt16 = Variable[uint16] + +// NilUInt32 is an uint32 type that can be nil +type NilUInt32 = Variable[uint32] + +// NilUInt64 is an uint64 type that can be nil +type NilUInt64 = Variable[uint64] + // NilFloat32 is an float32 type that can be nil type NilFloat32 = Variable[float32]