[60] 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


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 : 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 : Get UDP client IP address and differentiate clients by port number

golang udp udp-client-address port-number

Problem :

Your UDP server program needs to find out the UDP client IP address before writing to client. However,….... read more


Golang : Read from buffered reader until specific number of bytes

golang bytes bufio specific-number read

Problem :

You have a buffered reader streaming in with data. You want to limit each read to a specific….... read more


Golang : What is the default port number for connecting to MySQL/MariaDB database ?

golang database mysql mariadb port-number

Problem :

How to determine which port number when trying to connect to a database with https://github.com/go-sql-driver/mysql and….... read more


Advertisement

Advertisement