Go Mutex Mutual Exclusion locks, or mutexes can be used to synchronize access to state and safely access data across many goroutines.…
reflect
-
-
Go switch The Go switch statement executes one statement from multiple conditions. It is similar to if-else-if chain statement. Syntax: switch var1…
-
Go defer keyword The defer keyword is generally used for cleaning purpose. The defer keyword postpones the execution of a function or…
-
Go Package, import and visibility Packages Packages are used to categorize our program so that it can be easy to maintain. Every…
-
Go Tickers Go Tickers are used when we want to some work at regular interval of time. Tickers can be stopped like…
-
GO Epoch In Go, We can produce the time in seconds, milliseconds, nanosecond . The time package has the required methods like…
-
Go Panic Go panic is a mechanism by which we handle error situations. Panic can be used to abort a function execution.…
-
Go Time Go has very good support for the time manipulations. Unix epoch time is used as reference for time manipulations. we…
-
Go Error Go does not have an exception mechanism like try/catch in Java, we cannot throw an exception in Go. Go uses…
-
Go Pointer A pointer is a variable that stores the address of another variable. The general form of a pointer variable declaration…