Tutorials

golang.pngGolang : Calculate Relative Strength Index(RSI) example

24th October 2018

Alright, below is a simple example on how to calculate the Relative Strength Index(RSI) using data from Binance.com and Golang.….... read more



javascript.jpgJavascript : Change page title to get viewer attention

26th September 2018

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



golang.pngGolang : Selection sort example

25th September 2018

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



golang.pngGolang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter

29th June 2018

A simple example on how to use Golang's map to build a Jawi(Malays in Arabic script) to Rumi translation dictionary.….... read more



golang.pngGolang : Map within a map example

14th April 2018

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



golang.pngGolang : Check if an integer is negative or positive

19th March 2018

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

Here you….... read more



golang.pngGolang : Count number of digits from given integer value

16th March 2018

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



golang.pngGolang : Extract part of string with regular expression

11th March 2018

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



golang.pngGolang : Parse date string and convert to dd-mm-yyyy format

11th March 2018

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



golang.pngGolang : Randomize letters from a string example

11th October 2017

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



golang.pngGolang : Convert int to byte array([]byte)

30th September 2017

Problem :

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



golang.pngGolang : Test if an input is an Armstrong number example

26th September 2017

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



golang.pngGolang : Lock executable to a specific machine with unique hash of the machine

21st September 2017

Problem:

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



golang.pngGolang : Capture text return from exec function example

20th September 2017

Problem:

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

Solution:

The code….... read more



golang.pngGolang : Test a slice of integers for odd and even numbers

20th September 2017

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



golang.pngGolang : Execute terminal command to remote machine example

6th September 2017

Problem:

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



golang.pngGolang : Verify Linux user password again before executing a program example

4th September 2017

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



golang.pngGolang : Check a web page existence with HEAD request example

30th August 2017

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



Advertisement

Advertisement

Subscribe Newsletter