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

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

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

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

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?

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

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?

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?

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

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

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

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

Problem:

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



Advertisement

Advertisement

Advertisement