Answer the question
In order to leave comments, you need to log in
How can I prevent the terminal from closing on Windows after stopping the program with code 1?
When initializing the application, I use this construction
if config.Password == "" {
log.Fatal("Значение password не заполнено")
}
Answer the question
In order to leave comments, you need to log in
If you open the terminal in advance and run the executable file from it, it will not close.
Another option - if you have a windows terminal, then you can configure the behavior when the program crashes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question