Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Category: Tech

For Loop in go (golang)

Posted on May 7, 2020November 25, 2020 by admin

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)

Posted on May 3, 2020November 25, 2020 by admin

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)

Posted on May 2, 2020November 25, 2020 by admin

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)

Posted on April 30, 2020March 4, 2021 by admin

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)

Posted on April 17, 2020April 18, 2020 by admin

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)

Posted on April 17, 2020April 17, 2020 by admin

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)

Posted on April 17, 2020April 17, 2020 by admin

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)

Posted on April 17, 2020April 17, 2020 by admin

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)

Posted on April 17, 2020April 17, 2020 by admin

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)

Posted on April 17, 2020April 17, 2020 by admin

os.Chmod() function can be used to change the permissions of an existing file. Below is the signature of the function Code Output:

Posts pagination

Previous 1 … 40 41 42 … 62 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme