Golang

Golang Interface Syntax, Composing, and Empty Interfaces

In this blog, we will learn about Golang Interface Syntax. Let’s see what we are going to learn in Golang Interface Syntax. Syntax of Golang Interface Basics of Golang Interface Composing Interfaces Empty Interface in Golang Before learning Golang Interface make sure Basics of Golang are clear: Golang Interface Syntax type <Interface_name> interface { // Method – Initialization } Example: …

Golang Interface Syntax, Composing, and Empty Interfaces Read More »

Golang Anonymous Function Closure with Example

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 and Closure better. Golang Anonymous Function A …

Golang Anonymous Function Closure with Example Read More »

Scroll to Top