Golang

Golang Anonymous Function Closure with Example

Golang Anonymous Function Closure with Example Advertisement In the previous blog, we learned about Function Syntax in Golang and Variadic Arguments. This time we will learn about Anonymous Function in Golang, Return values, and the scope of the variable inside an anonymous function in Golang (Closure). Read Function in Golang to understand Golang Anonymous Function …

Golang Anonymous Function Closure with Example Read More »

Golang Function Return Multiple Values

Golang Function Return Multiple Values Advertisement In this blog, we will learn about Golang Function, Return Values, anonymous Function and Methods. Let’s see what we are going to learn in Golang Function, Return Values, Anonymous Function. Basic Syntax of Golang Function Golang Function Parameter Return Values Golang Function multiple return values Functions as Types Golang …

Golang Function Return Multiple Values Read More »

Golang If-Else, Switch Statement – Control Flow

In this blog, we will learn about Golang If-else and Switch Statements. Let’s see what we will learn in Golang if-else and switch statements – Control Flow: Golang If-else Statement (Control Flow) Operators If-else and if-else-if statement Golang Switch Statement Simple cases Cases with multiple tests Fall Through in Golang (Spoiler – There’s no Fall …

Golang If-Else, Switch Statement – Control Flow Read More »

Scroll to Top