Tutorials
Golang : Display list of time zones with GMT
For this tutorial, we will learn how to grab the list of time zones found in Unix/Darwin(Mac)/Linux/Windows and display the….... read more
Golang : Get month name from date example
Problem:
You have a date and you want to get the month name from the date. For example,10/10/2017
should give….... read more
Golang : Generate human readable password
Got a friend who works in the banking sector and she needs to password generator that will generate a password….... read more
Golang : Spell checking with ispell example
Chinese New Year for 2017 celebration just over and now it is time to get back to work. Here is….... read more
Golang : Convert word to its plural form example
Here is a program that will convert a singular word into its plural form and at the same time, perform….... read more
Golang : Handling Yes No Quit query input
The following is a simple program that will accept a single key answer from the console without the user hitting….... read more
Golang : Get hardware information such as disk, memory and CPU usage
For this tutorial, we will learn how to extract hardware level information with Golang. Accessing hardware level information such as….... read more
Golang : Get local IP and MAC address
This is a short program on how to get the local IP address, search for the correct network interface hardware….... read more
Golang : Apply Histogram Equalization to color images
For this tutorial, we will learn how to convert color images to greyscale and then apply Histogram Equalization as a….... read more
Golang : Tell color name with OpenCV example
Alright, I managed to train my 4-year-old son to learn color names. At this moment, he is able to name….... read more
Golang : GTK Input dialog box examples
Here are some simplified examples on how to create input dialog box with GTK and Golang. Basically, what each programs….... read more
Golang : flag provided but not defined error
Problem :
Your program uses flag.Parse()
function to parse the command line arguments and everything is working fine until you….... read more
Golang : Quadratic example
Here is a simple tutorial on how to perform quadratic calculation with Golang. This program accepts two floating point values….... read more
Golang : micron to centimeter example
Problem:
You need to convert centimeter to micron (µ) in Golang. How to do that?
Solution:
Simple. See the following….... read more
Golang : Flip coin example
This is a simple program to simulate flip coin that I use to train a small artificial intelligence program. Basically….... read more
Golang : Stop goroutine without channel
Writing this down here as my own reference. In case you need to stop a goroutine from further execution and….... read more
Golang : Convert seconds to minutes and remainder seconds
Problem:
You have an input seconds in integer that you want to convert into minutes and remainder seconds. How to….... read more
Golang : How to convert a number to words
I need to translate a given number into words such as 100
to one hundred
. The code below is a….... read more