- 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...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia