[47] Results

Golang : Number guessing game with user input verification example

golang number-guessing integer input-verification

Helping a Golang student from Mexico. She is building a simple random number guessing game and she wants to know….... read more


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 : 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


Golang : How to convert JSON string to map and slice

golang json-to-map json-to-slice array

Couple of simple examples on how to convert JSON string to map and slice(array).

Simple and straightforward way of converting….... 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


Advertisement

Advertisement