packageoptionaltypeUintstruct{isSetboolvalueuint}funcNewUint(valueuint)Uint{returnUint{true,value,}}// EmptyUint returns a new Uint that does not have a value set.funcEmptyUint()Uint{returnUint{false,0,}}func(iUint)IsSet()bool{returni.isSet}func(iUint)Value()uint{returni.value}func(iUint)Default(defaultValueuint)uint{ifi.isSet{returni.value}returndefaultValue}