Skip to content

CA-430573: Use int64 in Go SDK - #7232

Open
xueqingz wants to merge 1 commit into
xapi-project:masterfrom
xueqingz:private/xueqingz/CA-430573
Open

CA-430573: Use int64 in Go SDK#7232
xueqingz wants to merge 1 commit into
xapi-project:masterfrom
xueqingz:private/xueqingz/CA-430573

Conversation

@xueqingz

Copy link
Copy Markdown
Contributor

No description provided.

@xueqingz

Copy link
Copy Markdown
Contributor Author

SDK test pass on XenRT job 4718034, 4718035.

Signed-off-by: Sola.Zhang <Sola.Zhang@cloud.com>
@xueqingz
xueqingz force-pushed the private/xueqingz/CA-430573 branch from cb43a3f to 7c325ed Compare August 20, 2026 06:26
return
}
strValue := fmt.Sprintf("%v", input)
floatValue, err := strconv.ParseFloat(strValue, 64)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we want an int64 in line 55, should we have first tried to use ParseInt here and then ParseFloat only if the former fails?

return
}
strValue := fmt.Sprintf("%v", input)
floatValue, err := strconv.ParseFloat(strValue, 64)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as in ConvertTime.mustache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants