# Tutorials

## Golang : Find the length of big.Int variable example

There is a chance that you will ever need to get the length of `big.Int` variable and below is a….... read more

## Javascript : Change page title to get viewer attention

Nowadays, most browser users will open multiple tabs of web pages to view couple of pages by tabbing in and….... read more

## Golang : Selection sort example

The selection sort algorithm is an in-place comparison sort. What it does is that it loops a given slice and….... read more

## Golang : Map within a map example

Just an example of map within map in Golang. The example below demonstrates how to put declare a map with….... read more

## Golang : Check if an integer is negative or positive

A simple example on how to check if a given number is negative or positive number in Golang.

## Golang : Count number of digits from given integer value

Just a simple program to count number of digits from a given integer value. Need this to calculate if an….... read more

## Golang : Extract part of string with regular expression

Below is a simple example of how to extract a specific part of a string with the help of regular….... read more

## Golang : Parse date string and convert to dd-mm-yyyy format

A reader enquired on how to use Golang to convert date string such as "28th nov 2016" or "nov….... read more

## Golang : Randomize letters from a string example

For this short tutorial, we will learn how to randomize the letters(including symbols and empty spaces) in a string. Such….... read more

## Golang : Convert int to byte array([]byte)

Problem :

You need to convert integer variable or constant to byte array ( [] byte ). How to do….... read more

## Golang : Test if an input is an Armstrong number example

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is….... read more

## Golang : Lock executable to a specific machine with unique hash of the machine

Problem:

Got a friend that was looking for ways to lock her Golang executable to a specific machine at her….... read more

## Golang : Capture text return from exec function example

Problem:

You want to capture the text result return by exec function. How to do that?

Solution:

## Golang : Test a slice of integers for odd and even numbers

Got this question from one of my students and he is from a disadvantaged background(he is a refugee). He wanted….... read more

## Golang : Execute terminal command to remote machine example

Problem:

You need to query a remote machine with `ssh` to extract information such as memory usage or CPU information.….... read more

## Golang : Verify Linux user password again before executing a program example

One of my previous tutorial shows you how to restrict a program execution to `root` only and this can….... read more

## Golang : Check a web page existence with HEAD request example

There are times when we need to check if a web server is up and running first before querying further….... read more

## Golang : Submit web forms without browser by http.PostForm example

Writing this tutorial on how to submit a web form without using a browser. We submit web forms almost every….... read more