You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type CField struct {
Uid *String36 `xml:"Uid"`
Name *String500 `xml:"Name"`
YStart int `xml:"YStart"`
YEnd int `xml:"YEnd"`
IdCFieldType int `xml:"IdCFieldType"`
IdCFieldStatus int `xml:"IdCFieldStatus"`
MaxCount int `xml:"MaxCount"`
NAgree int `xml:"NAgree"`
CDir int `xml:"CDir"`
DateE string `xml:"DateE"`
FormLst *FormLst `xml:"FormLst"`
LevelLst *LevelLst `xml:"LevelLst"`
}
Describe the results you expected:
type CField struct {
Uid string `xml:"Uid"`
Name string `xml:"Name"`
YStart int `xml:"YStart"`
YEnd int `xml:"YEnd"`
IdCFieldType int `xml:"IdCFieldType"`
IdCFieldStatus int `xml:"IdCFieldStatus"`
MaxCount int `xml:"MaxCount"`
NAgree int `xml:"NAgree"`
CDir int `xml:"CDir"`
DateE string `xml:"DateE"`
FormLst *FormLst `xml:"FormLst"`
LevelLst *LevelLst `xml:"LevelLst"`
}
Description
Types declared at the end of the XSD are not substituted into the generated code.
XSD file:
XSD.txt
Generated file:
Gotype.txt
Describe the results you received:
Describe the results you expected:
I have made a quick and dirty fix which works for my schemas:
themaxi@2691c98
Generated file:
GotypeFix.txt
But I think a more correct and more thoughtful solution should be implemented.
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: