entwurf kennzeichnen

This commit is contained in:
Simon Martens
2025-06-03 11:20:46 +02:00
parent 780a365301
commit d9727d10ef
9 changed files with 279 additions and 241 deletions

View File

@@ -13,6 +13,14 @@ const (
False
)
func (b OptionalBool) IsTrue() bool {
return b == True
}
func (b OptionalBool) IsFalse() bool {
return b == False || b == Unspecified
}
func (b *OptionalBool) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
var attr struct {
Value string `xml:"value,attr"`