Go Strings The Go string is a sequence of variable-width characters. Go strings and text files occupy less memory or disk space.…
for
-
-
Go Continue Statement The continue is used to skip the remaining part of the loop, and then continues with the next iteration…
-
Go Map In Go, Maps is an unordered collection of key and its associated value. They are very good for looking up…
-
Go Struct In Go, Struct can be used to create user-defined types. Struct is a composite type means it can have different…
-
Go Data Types Variables can be of different types like int, float, struct, slice or it can be of the interface. The…
-
Go Mutex Mutual Exclusion locks, or mutexes can be used to synchronize access to state and safely access data across many goroutines.…
-
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…