golang.pngGolang : 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.pngGolang : 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.pngGolang : 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.pngGolang : 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.pngGolang : 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.pngGolang : 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.pngGolang : 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.pngGolang : micron to centimeter example


You need to convert centimeter to micron (ยต) in Golang. How to do that?


Simple. See the following….... read more

golang.pngGolang : 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.pngGolang : 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.pngGolang : Convert seconds to minutes and remainder seconds


You have an input seconds in integer that you want to convert into minutes and remainder seconds. How to….... read more

golang.pngGolang : 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