There are few different ways to run a go program. As it is a compiled language, we will see if we can run it as a script also. Lets see them one by one.
GoLang is a compiled language, with very simple syntax, easy handling of multi-threading app, Garbage-collected, open-source, and many more other features..
At run time, when a program panics, it immediately starts to unwind the call stack. Panics can also be initiated by user, by invoking inbuild panic() directly. Recover is a built-in function that regains control of a panicking goroutine. Recover is called inside a deferred functions.
In general, we use errors to handle the abnormal conditions in programming languages. But there are some unavoidable situations like accessing a nil pointer or …
Defer-statement within a function doesn’t follow the normal execution steps. With multiple defer statements and functions in a program, they are executed in LIFO(Last-In and First-Out) order
race conditions, mutex and channels in GoLang
GoLang Select, golang channel select, time.After()
Go Routine, Go concurrency, Go Channels, Go Waitgroup, Channel deadlock. Checking…