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 9c73055f130e090334c39f00cbd258863e24da38 Author: tonymmm1 <[email protected]> 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 3bc2b61..cf8bbcd 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -1313,6 +1313,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)
