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…
Author: admin
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
Get ASCII code/value of any Alphabet or Number in Go (Golang)
range over a string can give the ASCII of all the characters in the string. In below code we are printing the ASCII value of a lowercase alphabets, uppercase alphabets and numbers….
Change folder/directory permissions in Go (Golang)
os.Chmod() function can be used to change the permissions of an existing folder or directory. Below is the signature of the function Code Output:
Change file permissions in Go (Golang)
os.Chmod() function can be used to change the permissions of an existing file. Below is the signature of the function Code Output: