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
Describe the bug Currently, if somewhere we have in code:
const SomeVeryImportantThing = 1_000_000
We'll have warning in the console on the executing
warning: failed to evaluate const defaultMaxWriteSize at /google/secret_project/money.go:17:7, strconv.ParseUint: parsing "1_000_000": invalid syntax
The problem is that you should base 0 when you use strconv.ParseUint .
base 0
strconv.ParseUint
To Reproduce Steps to reproduce the behavior:
swag
Expected behavior I don't expect any warning/error related to the valid constants
Your swag version swag version v1.8.12
swag version v1.8.12
Your go version go version go1.20.3 darwin/arm64
go version go1.20.3 darwin/arm64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Currently, if somewhere we have in code:
We'll have warning in the console on the executing
warning: failed to evaluate const defaultMaxWriteSize at /google/secret_project/money.go:17:7, strconv.ParseUint: parsing "1_000_000": invalid syntax
The problem is that you should
base 0
when you usestrconv.ParseUint
.To Reproduce
Steps to reproduce the behavior:
swag
toolingExpected behavior
I don't expect any warning/error related to the valid constants
Your swag version
swag version v1.8.12
Your go version
go version go1.20.3 darwin/arm64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: