Skip to content
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

When calling a Go function that returns multiple values that aren't errors, store it in a tuple #317

Open
Keithcat1 opened this issue Feb 21, 2023 · 0 comments

Comments

@Keithcat1
Copy link
Contributor

Because I was trying to wrap github.com/faiface/beep/vorbis so I can play audio, but the only useful function in that package returns (Streamer, Format, err), and because it returns too many values, Gopy refuses to add it in and I am seemingly stuck.
There should be no problem simply returning a tuple. There are also some methods that return multiple values none of which are errors. If Gopy finds a function that returns an error but doesn't do so using the last return value, it should throw a compile error, but I've never seen one of those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant