@@ -21,6 +21,10 @@ import (
21
21
"fmt"
22
22
)
23
23
24
+ type isNullable interface {
25
+ isNull () bool
26
+ }
27
+
24
28
// ACPIOSTInfo -> ACPIOSTInfo (struct)
25
29
26
30
// ACPIOSTInfo implements the "ACPIOSTInfo" QMP API type.
@@ -3123,16 +3127,9 @@ func (BlockdevOptionsVvfat) isBlockdevRefOrNull() {}
3123
3127
func (BlockdevOptionsVxhs ) isBlockdevRefOrNull () {}
3124
3128
3125
3129
// Special case handling of JSON null type
3126
- type isBlockdevRefOrNullNullNullable interface {
3127
- isNull () bool
3128
- }
3129
- type BlockdevRefOrNullNull struct {
3130
- isNotNull bool
3131
- }
3130
+ type BlockdevRefOrNullNull struct {}
3132
3131
3133
- func (n BlockdevRefOrNullNull ) isNull () bool {
3134
- return ! n .isNotNull
3135
- }
3132
+ func (BlockdevRefOrNullNull ) isNull () bool { return true }
3136
3133
func (BlockdevRefOrNullNull ) isBlockdevRefOrNull () {}
3137
3134
3138
3135
// BlockdevRefOrNullReference is an implementation of BlockdevRefOrNull
@@ -9729,16 +9726,9 @@ type StrOrNull interface {
9729
9726
}
9730
9727
9731
9728
// Special case handling of JSON null type
9732
- type isStrOrNullNNullable interface {
9733
- isNull () bool
9734
- }
9735
- type StrOrNullN struct {
9736
- isNotNull bool
9737
- }
9729
+ type StrOrNullN struct {}
9738
9730
9739
- func (n StrOrNullN ) isNull () bool {
9740
- return ! n .isNotNull
9741
- }
9731
+ func (StrOrNullN ) isNull () bool { return true }
9742
9732
func (StrOrNullN ) isStrOrNull () {}
9743
9733
9744
9734
// StrOrNullS is an implementation of StrOrNull
0 commit comments