Quit not actually quits, how to use it? #1237
-
Hi guys,
I read in the guide that quit:
How can I force stop the execution? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
ianthehenry
Aug 3, 2023
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fnaj77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
os/exit
or remove themain
definition.quit
only really makes sense as a top-level statement — it stops evaluating the rest of the file, but doesn’t exit the process.