Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
danil committed Aug 31, 2021
1 parent ee9d804 commit fc87171
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions examples/f311sfc0v512/f311_sfc0_512.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "time"
type (
AnyURIXML string
BooleanXML bool
DateTimeXSDType time.Time
DateXSDType time.Time
DateTimeXSD time.Time
DateXSD time.Time
DecimalXML float64
DurationXML time.Duration
Float64XML float64
Expand All @@ -22,7 +22,7 @@ type (
PositiveIntegerXML uint
ShortIntXML int16
StringXML string
TimeXSDType time.Time
TimeXSD time.Time
TokenXML string
UnsignedShortIntXML uint16
)
Expand Down
22 changes: 11 additions & 11 deletions examples/mvk14201912/mvk_1_4_201912.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "time"
type (
AnyURIXML string
BooleanXML bool
DateTimeXSDType time.Time
DateXSDType time.Time
DateTimeXSD time.Time
DateXSD time.Time
DecimalXML float64
DurationXML time.Duration
Float64XML float64
Expand All @@ -22,16 +22,16 @@ type (
PositiveIntegerXML uint
ShortIntXML int16
StringXML string
TimeXSDType time.Time
TimeXSD time.Time
TokenXML string
UnsignedShortIntXML uint16
)

// СписокРешений is generated from an XSD element.
type СписокРешений struct {
ВерсияФормата StringXML `xml:"ВерсияФормата"`
ДатаСписка DateXSDType `xml:"ДатаСписка"`
ДатаПредыдущегоСписка *DateXSDType `xml:"ДатаПредыдущегоСписка,omitempty"`
ДатаСписка DateXSD `xml:"ДатаСписка"`
ДатаПредыдущегоСписка *DateXSD `xml:"ДатаПредыдущегоСписка,omitempty"`
СписокАктуальныхРешений СписокАктуальныхРешенийТип `xml:"СписокАктуальныхРешений"`
СписокОтмененныхРешений *СписокОтмененныхРешенийТип `xml:"СписокОтмененныхРешений,omitempty"`
}
Expand All @@ -45,7 +45,7 @@ type СписокАктуальныхРешенийТип struct {
type РешениеТип struct {
ТипРешения СправочникТип `xml:"ТипРешения"`
НомерРешения StringXML `xml:"НомерРешения"`
ДатаРешения DateXSDType `xml:"ДатаРешения"`
ДатаРешения DateXSD `xml:"ДатаРешения"`
Орган StringXML `xml:"Орган"`
ВидРешения СправочникТип `xml:"ВидРешения"`
СписокСубъектов *СписокСубъектовТип `xml:"СписокСубъектов,omitempty"`
Expand Down Expand Up @@ -114,7 +114,7 @@ type ФЛТип struct {
Имя *StringXML `xml:"Имя,omitempty"`
Отчество *StringXML `xml:"Отчество,omitempty"`
ФИОЛат *StringXML `xml:"ФИОЛат,omitempty"`
ДатаРождения *DateXSDType `xml:"ДатаРождения,omitempty"`
ДатаРождения *DateXSD `xml:"ДатаРождения,omitempty"`
ГодРождения *StringXML `xml:"ГодРождения,omitempty"`
МестоРождения *StringXML `xml:"МестоРождения,omitempty"`
ИНН *StringXML `xml:"ИНН,omitempty"`
Expand All @@ -134,9 +134,9 @@ type ДокументТип struct {
Серия *StringXML `xml:"Серия,omitempty"`
Номер *StringXML `xml:"Номер,omitempty"`
ОрганВыдачи *StringXML `xml:"ОрганВыдачи,omitempty"`
ДатаВыдачи *DateXSDType `xml:"ДатаВыдачи,omitempty"`
ДатаС *DateXSDType `xml:"ДатаС,omitempty"`
ДатаПо *DateXSDType `xml:"ДатаПо,omitempty"`
ДатаВыдачи *DateXSD `xml:"ДатаВыдачи,omitempty"`
ДатаС *DateXSD `xml:"ДатаС,omitempty"`
ДатаПо *DateXSD `xml:"ДатаПо,omitempty"`
ПризнакДействительности *BooleanXML `xml:"ПризнакДействительности,omitempty"`
}

Expand All @@ -151,7 +151,7 @@ type ДрНаименованиеФЛТип struct{}
// ЮЛТип is generated from an XSD element.
type ЮЛТип struct {
НаименованиеЛат *StringXML `xml:"НаименованиеЛат,omitempty"`
ДатаРегистрации *DateXSDType `xml:"ДатаРегистрации,omitempty"`
ДатаРегистрации *DateXSD `xml:"ДатаРегистрации,omitempty"`
МестоРегистрации *StringXML `xml:"МестоРегистрации,omitempty"`
ОГРН *StringXML `xml:"ОГРН,omitempty"`
СписокДрНаименований *СписокДрНаименованийЮЛТип `xml:"СписокДрНаименований,omitempty"`
Expand Down
16 changes: 8 additions & 8 deletions examples/ncbisubmission/ncbi_submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "time"
type (
AnyURIXML string
BooleanXML bool
DateTimeXSDType time.Time
DateXSDType time.Time
DateTimeXSD time.Time
DateXSD time.Time
DecimalXML float64
DurationXML time.Duration
Float64XML float64
Expand All @@ -22,7 +22,7 @@ type (
PositiveIntegerXML uint
ShortIntXML int16
StringXML string
TimeXSDType time.Time
TimeXSD time.Time
TokenXML string
UnsignedShortIntXML uint16
)
Expand All @@ -31,8 +31,8 @@ type (
type Submission struct {
SchemaVersion StringXML `xml:"schema_version,omitempty,attr"`
ResubmitOf StringXML `xml:"resubmit_of,omitempty,attr"`
Submitted DateXSDType `xml:"submitted,omitempty,attr"`
LastUpdate DateXSDType `xml:"last_update,omitempty,attr"`
Submitted DateXSD `xml:"submitted,omitempty,attr"`
LastUpdate DateXSD `xml:"last_update,omitempty,attr"`
Status StringXML `xml:"status,omitempty,attr"`
SubmissionID TokenXML `xml:"submission_id,attr"`
Description Description `xml:"Description"`
Expand Down Expand Up @@ -103,7 +103,7 @@ type Name struct {

// Hold is generated from an XSD element.
type Hold struct {
ReleaseDate DateXSDType `xml:"release_date,attr"`
ReleaseDate DateXSD `xml:"release_date,attr"`
}

// SubmissionSoftware is generated from an XSD element.
Expand Down Expand Up @@ -153,7 +153,7 @@ type Release struct{}

// SetReleaseDate is generated from an XSD element.
type SetReleaseDate struct {
ReleaseDate DateXSDType `xml:"release_date,attr"`
ReleaseDate DateXSD `xml:"release_date,attr"`
}

// TypeIDentifier is generated from an XSD element.
Expand Down Expand Up @@ -333,7 +333,7 @@ type Relevance struct {
// TypePublication is generated from an XSD element.
type TypePublication struct {
ID StringXML `xml:"id,attr"`
Date DateTimeXSDType `xml:"date,attr"`
Date DateTimeXSD `xml:"date,attr"`
Status TokenXML `xml:"status,attr"`
AuthorSet *TypeAuthorSet `xml:"AuthorSet,omitempty"`
Reference *StringXML `xml:"Reference,omitempty"`
Expand Down
26 changes: 13 additions & 13 deletions examples/omu10/omu_1_0.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "time"
type (
AnyURIXML string
BooleanXML bool
DateTimeXSDType time.Time
DateXSDType time.Time
DateTimeXSD time.Time
DateXSD time.Time
DecimalXML float64
DurationXML time.Duration
Float64XML float64
Expand All @@ -22,16 +22,16 @@ type (
PositiveIntegerXML uint
ShortIntXML int16
StringXML string
TimeXSDType time.Time
TimeXSD time.Time
TokenXML string
UnsignedShortIntXML uint16
)

// СписокОМУ is generated from an XSD element.
type СписокОМУ struct {
ВерсияФормата StringXML `xml:"ВерсияФормата"`
ДатаСписка DateXSDType `xml:"ДатаСписка"`
ДатаПредыдущегоСписка *DateXSDType `xml:"ДатаПредыдущегоСписка,omitempty"`
ДатаСписка DateXSD `xml:"ДатаСписка"`
ДатаПредыдущегоСписка *DateXSD `xml:"ДатаПредыдущегоСписка,omitempty"`
АктуальныйСписок АктуальныйСписокТип `xml:"АктуальныйСписок"`
}

Expand Down Expand Up @@ -60,9 +60,9 @@ type СправочникТип struct {

// ИсторияТип is generated from an XSD element.
type ИсторияТип struct {
ДатаВключения []DateXSDType `xml:"ДатаВключения,omitempty"`
ДатаИсключения []DateXSDType `xml:"ДатаИсключения,omitempty"`
ДатаМодификации []DateXSDType `xml:"ДатаМодификации,omitempty"`
ДатаВключения []DateXSD `xml:"ДатаВключения,omitempty"`
ДатаИсключения []DateXSD `xml:"ДатаИсключения,omitempty"`
ДатаМодификации []DateXSD `xml:"ДатаМодификации,omitempty"`
}

// СписокАдресовТип is generated from an XSD element.
Expand Down Expand Up @@ -106,7 +106,7 @@ type ФЛТип struct {
Имя *StringXML `xml:"Имя,omitempty"`
Отчество *StringXML `xml:"Отчество,omitempty"`
ФИОЛат *StringXML `xml:"ФИОЛат,omitempty"`
ДатаРождения *DateXSDType `xml:"ДатаРождения,omitempty"`
ДатаРождения *DateXSD `xml:"ДатаРождения,omitempty"`
ГодРождения *StringXML `xml:"ГодРождения,omitempty"`
МестоРождения *StringXML `xml:"МестоРождения,omitempty"`
ИНН *StringXML `xml:"ИНН,omitempty"`
Expand All @@ -126,9 +126,9 @@ type ДокументТип struct {
Серия *StringXML `xml:"Серия,omitempty"`
Номер *StringXML `xml:"Номер,omitempty"`
ОрганВыдачи *StringXML `xml:"ОрганВыдачи,omitempty"`
ДатаВыдачи *DateXSDType `xml:"ДатаВыдачи,omitempty"`
ДатаС *DateXSDType `xml:"ДатаС,omitempty"`
ДатаПо *DateXSDType `xml:"ДатаПо,omitempty"`
ДатаВыдачи *DateXSD `xml:"ДатаВыдачи,omitempty"`
ДатаС *DateXSD `xml:"ДатаС,omitempty"`
ДатаПо *DateXSD `xml:"ДатаПо,omitempty"`
ПризнакДействительности *BooleanXML `xml:"ПризнакДействительности,omitempty"`
}

Expand All @@ -148,7 +148,7 @@ type СписокГражданствФЛТип struct {
// ЮЛТип is generated from an XSD element.
type ЮЛТип struct {
НаименованиеЛат *StringXML `xml:"НаименованиеЛат,omitempty"`
ДатаРегистрации *DateXSDType `xml:"ДатаРегистрации,omitempty"`
ДатаРегистрации *DateXSD `xml:"ДатаРегистрации,omitempty"`
МестоРегистрации *StringXML `xml:"МестоРегистрации,omitempty"`
ОГРН *StringXML `xml:"ОГРН,omitempty"`
СписокДрНаименований *СписокДрНаименованийЮЛТип `xml:"СписокДрНаименований,omitempty"`
Expand Down
8 changes: 4 additions & 4 deletions generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ package %s
type (
AnyURIXML string
BooleanXML bool
DateTimeXSDType time.Time
DateXSDType time.Time
DateTimeXSD time.Time
DateXSD time.Time
DecimalXML float64
DurationXML time.Duration
Float64XML float64
Expand All @@ -134,7 +134,7 @@ type (
PositiveIntegerXML uint
ShortIntXML int16
StringXML string
TimeXSDType time.Time
TimeXSD time.Time
TokenXML string
UnsignedShortIntXML uint16
)
Expand Down Expand Up @@ -285,7 +285,7 @@ func goPrimitiveType(t string) bool {
"int16", "ShortIntXML",
"uint", "PositiveIntegerXML", "NonNegativeIntegerXML", "UnsignedShortIntXML",
"float64", "DecimalXML", "Float64XML",
"time.Time", "DateTimeXSDType", "DateXSDType", "TimeXSDType":
"time.Time", "DateTimeXSD", "DateXSD", "TimeXSD":
return true
}

Expand Down
6 changes: 3 additions & 3 deletions goxsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ func (b *builder) findType(name string) interface{} {
return "DecimalXML"

case "date":
return "DateXSDType"
return "DateXSD"

case "dateTime":
return "DateTimeXSDType"
return "DateTimeXSD"

case "time":
return "TimeXSDType"
return "TimeXSD"

case "string":
return "StringXML"
Expand Down

0 comments on commit fc87171

Please sign in to comment.