mirror of
https://github.com/wneessen/niljson.git
synced 2024-11-21 21:20:50 +01:00
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.
This commit is contained in:
parent
65168ce50b
commit
63c28cbb9e
1 changed files with 15 additions and 0 deletions
15
niljson.go
15
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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue