In go multi-dimension is possible for both array and slice. Let’s see both of them in detail. Multi-Dimensional Arrays Overview Below is the format for declaring a multidimensional dimensional array where len1…
Tag: golang
Understanding Array in Go (Golang) – Complete Guide
This is the chapter 17 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – SlicePrevious Tutorial – Struct Now let’s check…
Understand for-range Loop in go (golang) – Complete Guide
This is the chapter 11 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – If ElsePrevious Tutorial – For Loop Now…
For Loop in go (golang)
This is the chapter 10 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – For Range loopPrevious Tutorial – Constants…
Switch Statement in Go (Golang)
This is the chapter 13 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – Defer keywordPrevious Tutorial – If Else Now…
Understand If Else Statement in Go (Golang)
This is the chapter 12 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – SwitchPrevious Tutorial – For Range loop Now…
Variables in Go (Golang)
This is the chapter 6 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – All basic data typesPrevious Tutorial – Packages and…
cd command in Go or change current working directory in Go (Golang)
Overview os.Chdir() is used to change the current working directory to the named directory in golang. It is similar to the cd command. Below is the signature of the function Code Output:
Get Current User’s Home Directory in Go (Golang)
Overview ‘os/user’ package can be used to get the current user home directory Let’s see a working code Code Output
Get current Username in Go (Golang)
Overview ‘os/user’ package can be used to get the current user name. Let’s see a working code Code Output