From 4cfa3050a2bd15bd140a8f76a5b611e06b954dc6 Mon Sep 17 00:00:00 2001 From: Jens Gersdorf Date: Fri, 16 Jun 2023 08:31:56 +0200 Subject: [PATCH] added nonnegativeinteger --- gowsdl.go | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/gowsdl.go b/gowsdl.go index 32aee6b7..dbd139be 100644 --- a/gowsdl.go +++ b/gowsdl.go @@ -494,29 +494,30 @@ func goString(s string) string { } var xsd2GoTypes = map[string]string{ - "string": "string", - "token": "string", - "float": "float32", - "double": "float64", - "decimal": "float64", - "integer": "int32", - "int": "int32", - "short": "int16", - "byte": "int8", - "long": "int64", - "boolean": "bool", - "datetime": "soap.XSDDateTime", - "date": "soap.XSDDate", - "time": "soap.XSDTime", - "base64binary": "[]byte", - "hexbinary": "[]byte", - "unsignedint": "uint32", - "unsignedshort": "uint16", - "unsignedbyte": "byte", - "unsignedlong": "uint64", - "anytype": "AnyType", - "ncname": "NCName", - "anyuri": "AnyURI", + "string": "string", + "token": "string", + "float": "float32", + "double": "float64", + "decimal": "float64", + "integer": "int32", + "int": "int32", + "short": "int16", + "byte": "int8", + "long": "int64", + "boolean": "bool", + "datetime": "soap.XSDDateTime", + "date": "soap.XSDDate", + "time": "soap.XSDTime", + "base64binary": "[]byte", + "hexbinary": "[]byte", + "unsignedint": "uint32", + "nonnegativeinteger": "uint32", + "unsignedshort": "uint16", + "unsignedbyte": "byte", + "unsignedlong": "uint64", + "anytype": "AnyType", + "ncname": "NCName", + "anyuri": "AnyURI", } func removeNS(xsdType string) string {