golang.pngGolang : Measure execution time for a function

Ok, this is another way to measure execution time of a Golang function. This method uses defer and produce a….... read more

golang.pngGolang : Simple file scaning and remove virus example

Just for fun, for this tutorial, we will simulate a simple anti-virus program. Let's create a simple file scanner that….... read more

golang.pngGolang : Randomly pick an item from a slice/array example


You are building a game and you want to randomly pick an item from a slice of URLs. How….... read more

golang.pngGolang : Get SPF and DMARC from email headers to fight spam


You are building an email server with spam filter from scratch with Golang and you want to query a….... read more

golang.pngGolang : How to determine a prime number?

In mathematics and computer security, it is very important to determine if a given number is a prime number or….... read more

golang.pngGolang : Delay or limit HTTP requests example


For some technical limitation reason, you want to delay or slow down HTTP requests to one of your machines….... read more

golang.pngGolang: Prevent over writing file with md5 hash

This is an additional note for previous tutorial on how to upload/submit file from command line to a….... read more

golang.pngGolang : Command line file upload program to server example

Writing this tutorial for a friend who is using Golang to develop her IoT application. She needs a client program….... read more

golang.pngGolang : How to filter a map's elements for faster lookup

A short tutorial on how to filter map elements. Map is a hash table equivalent in Golang and very useful….... read more

golang.pngGolang : Identifying Golang HTTP client request


You've read about the Mirai DDoS malware that infects IoT devices and turning them into a massive….... read more

golang.pngGolang : Not able to grep log.Println() output


You have a Golang program that uses log.Println() to capture text output generated by your program and you want….... read more

golang.pngGolang : Accessing content anonymously with Tor

There are times when we need to access content and do research anonymously. Using Tor(The Onion Router) can be useful….... read more