Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gowsdl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func TestDateTimeType(t *testing.T) {
t.Fatal(err)
}

expected := `type StartDate soap.XSDDateTime`
expected := `type StartDate = soap.XSDDateTime`

if actual != expected {
t.Error("got \n" + actual + " want \n" + expected)
Expand Down
4 changes: 2 additions & 2 deletions types_tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ var typesTmpl = `
{{else}}
type {{$typeName}} interface{}
{{end}}

{{if .Restriction.Enumeration}}
const (
{{with .Restriction}}
Expand All @@ -164,7 +164,7 @@ var typesTmpl = `
{{else}}
{{$type := toGoType .Type .Nillable | removePointerFromType}}
{{if ne ($typeName) ($type)}}
type {{$typeName}} {{$type}}
type {{$typeName}} = {{$type}}
{{if eq ($type) ("soap.XSDDateTime")}}
func (xdt {{$typeName}}) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
return soap.XSDDateTime(xdt).MarshalXML(e, start)
Expand Down