- What's an exit code? Who makes use of it?
The exit code is an integer value passed from a process to is parent to signal when the process ends. It represents the outcome of the process, and it is 0 if there have been no errors. The parent process can use this value to decide what to do next, such as running the process again if there is an error. - What happens when an application panics? What exit code is returned?
If panic is not recovered, the application will execute all the deferred functions and will exit with a status of 2. - What's the default behavior of a Go application when receiving all signals?
The default behavior of a Go application with signals is an early exit. - How do you intercept signals and decide how the application must behave?
The signals received can be intercepted using the signal.Notify method on a channel, specifying...
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand