-
Notifications
You must be signed in to change notification settings - Fork 131
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
Type mismatch causing go-steam not to build. #13
Comments
Your analysis seems about right, but I am not seeing this error on Though I don't see how your program above compiles - there are unused imports which Go usually sees as a reason to abort compilation. Or did you shorten the example? Regarding the suggestion to change the types to the proper |
I am on |
I'm using I was also using the |
Interesting. I updated my Go installation to 1.3.1 and experienced the same issue as @RJacksonm1. I'll merge #14 then. Curious though - this should not happen with a bugfix release, should it? |
Hi there,
Excuse me if I'm blatantly incorrect - this endeavour was my first time writing any Go.
I've got a source file which is simply a Hello World, but loads in go-steam as my first ask after Hello World is going to be logging into a Steam account.
When attempting to build this little bit of code, I got the following error:
If I understand correctly, this is because
EAccountType_Individual
is of typeEAccountType
(which is based uponint32
, but I guess Go is pretty strict about it's types), whereassteamid.NewIdAdv
is expecting a regularint32
for a user's account type. I can workaround this for now by castingEAccountType_Individual
toint32
, but I think the correct solution is to changeNewIdAdv
to accept anEAccountType
value foraccountType
instead ofint32
- and at present I don't know how to do that (importingsteamlang
errored out because of circular imports).Thanks,
The text was updated successfully, but these errors were encountered: