-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
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
Add Int32 type #801
Comments
Hi @pgier 👋 Thank you for raising this. One thing that has come up occasionally before is specifically supporting a 32-bit integer type, but this is the first direct request for a Go-specific Can you describe where/why you're running into these type conversions? Are you working with an API SDK that deals exclusively with the loosely-defined |
I guess an int32 type would be fine. My specific cases that I've run into are:
For (1), I'm now using If there is already a request for an int32 type, I think you can close this as a duplicate. |
Just to ensure we are on the same page, are those client library types the Go built-in
I don't believe there is a public one in this issue tracker at the moment, so if you're okay with that we can re-title this. |
This particular library is using specifically int32 types.
Yes, that's fine with me |
Module version
Use-cases
Any time you want to use a default int in golang.
Attempted Solutions
Currently using the schema.Int64Attribute and related types. I have to do type conversions in various places.
Proposal
Add an
Int
type similar to Int64 which just returns a default golangint
.The text was updated successfully, but these errors were encountered: