[37] Results

Golang : Changing a RGBA image number of channels with OpenCV

golang bgr number-of-rgba-channels opencv-cvtcolor create-image


Golang image packages deal with RGBA ( 4 channels ) and OpenCV deals with BGR ( 3 channels ).….... read more

Golang : Loop each day of the current month example

golang loop-date number-of-days-in-month


You need to get the current month, find out the number of days in the month programmatically and loop….... read more

Golang : Channels and buffered channels examples

golang channels

Continue from previous tutorial on goroutines. Goroutines run in the same memory address space and how does Golang….... read more

Golang : How to capture return values from goroutines?

golang channels goroutines sync-waitgroup

Got a question asked by a newbie on Facebook yesterday. Her question was how to capture the return values generated….... read more

Generate Random number with math/rand in Go


Random number is useful in many application. One such example is salting password to make in more secure. In this tutorial, we will learn how….... read more

Golang : Calculate how many weeks left to go in a given year

golang isoweek weeks-left week-number

Here is a simple tutorial on how to calculate the number of weeks in a given year and figure out….... read more

Random number generation with crypto/rand in Go


Random number is useful in many applications. From salting password to enabling secure transactions. In this tutorial, we will learn how to generate random number….... read more

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