Hi there! I am Mohammad Abbasi 👋

I am a computer enthusiast, and here i will write about computer, software, tech, and my personal experiences. I am currently working as a software engineer at ArvanCloud.
Generics in Go

Generics in Go

You probably know that Go is a statically typed language, which means that every variable in your program must have a predefined type. For example, when we define a function, we need to specify the types of its parameters, like in the following code: func Print(s string) { fmt.Println(s) } Here, we have defined a parameter named “s” with the string type. We can define any number of additional parameters with any types, such as float64, int, or structs....

August 27, 2024 · 3 min