adityakumarsingh.hashnode.devSOLID Principles 💪The significance of SOLID Principles is that it helps us to write code that doesn’t collapse under its own weight as the project grows. Golang code examples are attached to explain each principle. 1.) Single Responsibility Principle SRP states that C...Jan 21·6 min read
adityakumarsingh.hashnode.devMaps in GoGo provides the Map data structure when 2 values need to be associated with each other. They are stored in a key-value format. Map Format Map is written as map[key-Type] value-Type Map Declaration Let's see how we can declare a map, First we can use...Jul 18, 2024·2 min read
adityakumarsingh.hashnode.devSlices in GoGreetings Folks, Slices are a reference to an array, providing more flexibility for the developers to work with these data structures. This allows you to work with a portion of an array as if it were an independent array. Arrays have a fixed size whi...Apr 24, 2024·3 min read
adityakumarsingh.hashnode.devDefer Keyword in GoGreetings folks, In this article, we are going to see the use of defer keyword in Go. In simple words, to schedule the execution of a function after other functions have been executed defer is used. package main import "fmt" func main() { fmt.Pr...Apr 18, 2024·2 min read