Tutorials

golang.pngGolang : Convert IP address string to long ( unsigned 32-bit integer )

1st May 2017

Here is another way of converting IPv4 string to long ( unsigned 32-bit integer ). Pretty similar to the previous….... read more



golang.pngGolang : Format numbers to nearest thousands such as kilos millions billions and trillions

30th April 2017

Problem:

You want to format a given number to the nearest thousands such as kilos, millions, billions, and trillions. For….... read more



golang.pngGolang : Print how to use flag for your application example

27th April 2017

Just a short tutorial on how to usage flag package to check for the number of flag arguments require by….... read more



golang.pngGolang : Check whether a network interface is up on your machine

27th April 2017

Problem:

You have multiple network interfaces on your machine and you need to know the status of a particular network….... read more



golang.pngGolang : Get the IPv4 and IPv6 addresses for a specific network interface

27th April 2017

Problem:

You need to find the IP address of a specific network interface on your machine for developing your application.….... read more



golang.pngGolang : How to check if a date is within certain range?

26th April 2017

Problem:

You are processing a large number of raw data files with dates as timestamps. However, you are only interested….... read more



golang.pngGolang : Converting a negative number to positive number

26th April 2017

Helping out a friend here to figure out why her totalizer formula is spitting out incorrect result. Apparently, what she….... read more



golang.pngGolang : How to make a file read only and set it to writable again?

26th April 2017

Problem:

You want to set a file to read-only mode and also want to test if a file is really….... read more



golang.pngGolang : How to check if a file is hidden?

25th April 2017

So, how to check if a file is hidden? The solutions below are OS dependent. One for Unix/Linux and another….... read more



cent-os.pngMac/Linux/Windows : Get CPU information from command line

25th April 2017

Writing these down here for future references, will be handy with comes to identifying a machine's CPU information during system….... read more



golang.pngGolang : Forwarding a local port to a remote server example

24th April 2017

Got a strange request yesterday. A friend who is an IT manager in his company needs to implement some control….... read more



golang.pngGolang : Get final balance from bit coin address example

23rd April 2017

Here is an example of how to query blockchain.info to get the final balance(amount) with a given bitcoin transaction address.….... read more



golang.pngGolang : Force your program to run with root permissions

22nd April 2017

Problem:

Because of security requirements, you need to create programs that can only be executed with the proper root permissions.….... read more



golang.pngGolang : Populate slice with sequential integers example

21st April 2017

Helping out a friend here, putting the code example down here for future references. Basically, he needs to generate a….... read more



golang.pngGolang : Get current time from the Internet time server(ntp) example

21st April 2017

There are times when a program needs to have accurate machine time. For example, the make command found in Unix/Linux.….... read more



golang.pngGolang : Find network service name from given port and protocol

20th April 2017

In this tutorial, we will learn how to discover the list of available network services on a machine. This method….... read more



golang.pngGolang : Convert IPv4 address to packed 32-bit binary format

18th April 2017

There are times when we need to deal with low-level network functions such as dealing with C program and the….... read more



macosx.jpgMac/Linux and Golang : Fix bind: address already in use error

18th April 2017

Not really a tutorial. However, it is good to put this here as a guide for junior software developers.

.... read more



Advertisement