Welcome To Golang By Example

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

Tag: go

Install GO (aka Golang) on Linux

Posted on March 8, 2020March 8, 2020 by admin

GO is available to be installed on Win, Mac, and Linux platforms. Let’s see the installation set up for Linux Install Download the archive of latest version of GO from here  –…

Install GO (aka Golang) on MAC

Posted on March 8, 2020March 9, 2020 by admin

Overview GO is available to be installed on Win, Mac, and Linux platforms. GO can be installed on MAC in three ways Using archive Using brew Using .pkg installer Let’s look at…

Wait for all Go routines to finish execution in Golang

Posted on February 25, 2020February 25, 2020 by admin

sync package of golang provides WaitGroup struct which can be used to wait for collection of goroutines to finish execution. The WaitGroup provides: Add method to set the number of goroutines to…

Parse a bool or Check if given string is a bool in Go (Golang)

Posted on February 23, 2020February 23, 2020 by admin

strconv.ParseBool() function can be used to parse a string representation of a bool. https://golang.org/pkg/strconv/#ParseBool Below is the signature of the function Let’s see a working code Output:

Check if a string is a number in Go (Golang)

Posted on February 23, 2020February 23, 2020 by admin

strconv.Atoi() function can be used to check if the string is a number. If this function returns an error if the passed string is not a number. This function parses the number…

Understanding Rune in Golang

Posted on January 23, 2020January 23, 2020 by admin

Overview rune in Go is an alias for int32 meaning it is an integer value. This integer value is meant to represent a Unicode Code Point. To understand rune you have to know…

Append to an existing file in Go (Golang)

Posted on January 17, 2020January 17, 2020 by admin

os.OpenFile() function of the os package can be used to open to a file in an append mode and then write to it Let’s see an example. In the below program: First,…

Get Current Working Directory in Go (Golang)

Posted on January 16, 2020January 16, 2020 by admin

os.Getwd() is used to get the current working directory. Output will similar to pwd command on linux Output: Current Working Direcoty: <will be current working directory on the machine>

Iterative Binary Search Tree in Go (Golang)

Posted on January 15, 2020January 15, 2020 by admin

Introduction A binary search tree abbreviated as BST is a binary tree. For each node in a Binary Search Tree Value of each node in the left  subtree is less than the…

Default Zero Value of all Types in Go (Golang) With Examples

Posted on January 4, 2020January 4, 2020 by admin

Default Value Table Type Default Value Integer 0 Float 0 Complex Number 0 Real and 0 Imaginary Part Byte 0 Rune 0 String “” Bool false Array Every array value to its…

Posts pagination

Previous 1 … 39 40 41 … 44 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