Showing Posts From

Go

Golang - 5 different ways of comparing two strings with reasons

Learn with reason on which method to choose when you are doing the string comparison in Golang and n...

5 ways to concatenate string in Golang with reasons

Learn with reason on which method to choose when you are doing the string concatenation in Golang an...

Adding and Removing dependency in Go modules

Adding and Removing dependency in Go modules with examples...

Building basic CRUD operations in Go with Fiber

Building simple CRUD operations using Fiber. This article goes into detail about how to set up the A...

Building CLI application with GO

This article explains how to create a simple application in Go and access the feature using a CLI in...

Convert string to bool in Golang

Converting string to bool can be done using the strconv.ParseBool method. It tries to return a boole...

Convert string to bytes in golang

Converting string to bytes can be done using the []bytes() method...

Go - If Else Statement

Conditional statement form the basics of any program and you will learn how to write if else stateme...

Go - Learning 'for' loop statement in-depth

In programming, repeating a particular task is essential. Loop helps in executing pieces of code mul...

Go Switch - 6 ways of using Switch in Go

Application Development will have business logic based on a few conditions and the switch statement ...

Go Testing with Test Driven Development

Test Driven Development follows the principle of converting the requirements into a test case and de...

How to program a while loop in golang?

Golang syntax does not have a keyword for `while` loop but we can use the `for` loop syntax to creat...

Sorting a Slice of Integers in Reverse With Golang

Learn how to sort a slice of interger in golang using sort.Reverse()...

Golang - What is epoch?

What is epoch value? Learn about how to calculate the epoch value in Go....

How to check if a map contains a key in Go?

How to check if a map contains a key in Go using example...

How to concatenate strings in Go

Different ways to concatenate strings in Go with examples...

How to Convert integer to string type in Go?

You can convert integer to string type in golang using the Itoa() function from the strconv package....

How to Convert string to integer type in Go?

You can convert string to integer type in golang using the Atoi() function from the strconv package....

How to create a multiline string in Go

A multiline string can be useful when you want to show the user of your app in a readable format. Th...

How to find the type of an object in Go

Finding the type of the object using the reflect package in Go...

How to pause execution using the sleep function in Golang

Learn about the Sleep function from the time package to pause the execution of the thread. Also lear...

How to run a Golang Program?

How to run a Golang program to get the output of the Go in command line...

How to use Golang Maps?

Map is a built-in type in Go that helps in storing key-value pairs. Learn how to use Golang maps in ...

How to use main and init functions in Golang

Go language reserves main() and init() function for special purposes which can help simplify your co...

Introduction to Golang

Building your first console application using Golang...