We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rand
https://github.com/goplus/builder/pull/1212/files#r1906657692
这个姿势其实挺不好用的,如果要生成一个 1-10 的非整数,试了下目前没有好的办法 如果 rand(1.0, 10.0),gop 还是会把它当成 rand(int, int) 如果 rand(float64(1), float64(10)),则运行会报错 cannot use float64(1) (constant 1 of type float64) as int value in argument to spx.Rand__0 Code: 2 感觉是个 gop 的 bug
这个姿势其实挺不好用的,如果要生成一个 1-10 的非整数,试了下目前没有好的办法
1-10
如果 rand(1.0, 10.0),gop 还是会把它当成 rand(int, int)
rand(1.0, 10.0)
rand(int, int)
如果 rand(float64(1), float64(10)),则运行会报错
rand(float64(1), float64(10))
cannot use float64(1) (constant 1 of type float64) as int value in argument to spx.Rand__0 Code: 2
感觉是个 gop 的 bug
The text was updated successfully, but these errors were encountered:
chore(tools): bump Go+ to head for urgent bug fixes
e23cb26
See goplus/gogen#453, goplus/gogen#458, goplus/gogen#459. Fixes goplus#1213 Signed-off-by: Aofei Sheng <[email protected]>
9d65117
Related: - goplus/gogen#453 - goplus/gogen#458 - goplus/gogen#459 Fixes goplus#1213 Updates goplus#1199 - goplus#1199 (comment) Signed-off-by: Aofei Sheng <[email protected]>
0081d7d
aofei
Successfully merging a pull request may close this issue.
https://github.com/goplus/builder/pull/1212/files#r1906657692
The text was updated successfully, but these errors were encountered: