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

the kind of using of "goto" is wrong ? why ?help!thanks! #41069

Closed
AnkoGo opened this issue Aug 27, 2020 · 1 comment
Closed

the kind of using of "goto" is wrong ? why ?help!thanks! #41069

AnkoGo opened this issue Aug 27, 2020 · 1 comment

Comments

@AnkoGo
Copy link

@AnkoGo AnkoGo commented Aug 27, 2020

I find this issues of "goto" ,this is my fault?
image

@ALTree
Copy link
Member

@ALTree ALTree commented Aug 27, 2020

Yes, the code is wrong. The goto at line 28 causes the function to jump unconditionally to line 46, so the return you put on line 44 is always skipped (and does nothing).

Please note that the Go project does not use its bug tracker for general discussion or asking questions about the language. The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process.

Please see the Questions wiki page; it has a list of good places for asking questions. Thanks!

Closing here, since this is not a bug.

@ALTree ALTree closed this Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.