[46] Results

Golang : Sieve of Eratosthenes algorithm

golang prime-number sieve eratosthenes algorithm

For this tutorial, we will learn about sieve of Eratosthenes algorithm. Sieve of Eratosthenes is an algorithm for generating all….... read more


Golang : Convert string slice to struct and access with reflect example

golang reflect slice-to-struct

Writing this down here for my own future references. Basically, what this code does is to convert a given string….... read more


Golang : How to log each HTTP request to your web server?

golang log-http-request save-log-to-file request-logger

Problem:

You want to log each HTTP request made to your web server complete with duration (start time - end….... read more


Golang : Individual and total number of words counter example

golang word-counter strip-delimiter find-total-words

Problem:

You need to count the unique instances of words and the total number of words in a given string.….... read more


Golang : How to determine a prime number?

golang prime-number big-int cryto-rand

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


Facebook : How to place save to Facebook button on your website

save-to-facebook uri fb-app

Just a quick tutorial on how to place the save to Facebook button on a web page. Instead of bookmarking….... read more


Golang : Save map/struct to JSON or XML file

golang XML json save-to-file

Previous tutorial on converting map/slice/array to JSON or XML format is for output to web via net/http package.….... read more


Golang : Sort words with first uppercase letter

golang sort-words uppercase map replace-element-in-slice tag

Problem:

You use the sort.Strings() function to sort a slice of words. However, you noticed that words with the first….... read more


Advertisement

Advertisement