diff --git a/gowsdl.go b/gowsdl.go index 33a1199..3a4d603 100644 --- a/gowsdl.go +++ b/gowsdl.go @@ -295,18 +295,26 @@ func replaceReservedWords(identifier string) string { } var xsd2GoTypes = map[string]string{ - "string": "string", - "decimal": "float64", - "integer": "int64", - "int": "int32", - "short": "int16", - "byte": "int8", - "long": "int64", - "boolean": "bool", - "dateTime": "time.Time", - "date": "time.Time", - "time": "time.Time", - "anyType": "interface{}", + "string": "string", + "float": "float32", + "double": "float64", + "decimal": "float64", + "integer": "int32", + "int": "int32", + "short": "int16", + "byte": "int8", + "long": "int64", + "boolean": "bool", + "dateTime": "time.Time", + "date": "time.Time", + "time": "time.Time", + "base64Binary": "[]byte", + "hexBinary": "[]byte", + "unsignedInt": "uint32", + "unsignedShort": "uint16", + "unsignedByte": "byte", + "unsignedLong": "uint64", + "anyType": "interface{}", } func toGoType(xsdType string) string { diff --git a/types_tmpl.go b/types_tmpl.go index f2e6def..fde5257 100644 --- a/types_tmpl.go +++ b/types_tmpl.go @@ -35,6 +35,8 @@ var typesTmpl = ` {{end}} package main +//Generated by https://github.com/c4milo/gowsdl +//Do not modify import ( "encoding/xml" //"time"