[36] Results

Golang : Changing a RGBA image number of channels with OpenCV

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

Problem:

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

Problem:

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


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


Golang : Check if integer is power of four example

golang math-pow power-of

Problem:

You need to test if a given integer is a power of 4. For example, if given number =….... read more


Advertisement