[38] Results

Golang : How to convert a number to words

golang translate-number-to-words convert-number

I need to translate a given number into words such as 100 to one hundred. The code below is a….... read more


Golang : Word limiter example

golang slice-to-string word-limiter count-words

Problem:

You want to limit a string to X number of words. How to do that?

Solution:

Break the string….... read more


Generate Random number with math/rand in Go

random-number

Random number is useful in many application. One such example is salting password to make in more secure. In this….... read more


Random number generation with crypto/rand in Go

random-number

Random number is useful in many applications. From salting password to enabling secure transactions.

In this tutorial, we will….... 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 : 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 : Generate random integer or float number

golang random number integer float

Was helping out a friend last Sunday to finish up his Golang project and encounter a problem where we need….... 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


Advertisement

Advertisement