If an optional member is specified in the XML file, and the member is set and then not set on the next write (for a keyed instance) the optional member stays populated.
Realized just after submitting this, there is a ClearMembers() function that clears out anything that was set on that instance, and it in turn clears out the optional member.
Description:
If an optional member is specified in the XML file, and the member is set and then not set on the next write (for a keyed instance) the optional member stays populated.
How to reproduce:
go get
go run main.go
System information:
Operating system: Ubuntu 22.04 Platform: x64Linux4gcc7.3.0
Go version: 1.21.5