Skip to content

Instantly share code, notes, and snippets.

View Thedrogon's full-sized avatar
🎯
Focusing

Sayanjit Mukherjee Thedrogon

🎯
Focusing
View GitHub Profile
@Thedrogon
Thedrogon / array_slice.go
Last active May 30, 2025 17:59
A Gist that shows how Arrays , maps, slices are done in Golang ...
func main(){
//Arrays in Golang
my_array := [5]int{1,2,3,4,5} // just like othesrs , arrays in go are 0 indexed.
//multidimensional arrys
matrix := [2][3]int{
{1,2,3},
{4,5,6},
}