This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch pr90
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git

commit c636a94e3a69a7449998d163415ab80458089a27
Author: tonymmm1 <t...@mail.magnatox.com>
AuthorDate: Tue Jul 23 21:28:45 2024 -0500

    fix url value generation for double/float64 types
---
 generate/generate.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/generate/generate.go b/generate/generate.go
index 0aa09e4..01a0b92 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -1340,6 +1340,9 @@ func (s *service) generateConvertCode(cmd, name, typ 
string) {
        case "int64":
                pn("vv := strconv.FormatInt(v.(int64), 10)")
                pn("u.Set(\"%s\", vv)", name)
+       case "float64":
+               pn("vv := strconv.FormatFloat(v.(float64), 'f', -1, 64)")
+               pn("u.Set(\"%s\", vv)", name)
        case "bool":
                pn("vv := strconv.FormatBool(v.(bool))")
                pn("u.Set(\"%s\", vv)", name)

Reply via email to