[50] 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 : Ordinal and Ordinalize a given number to the English ordinal numeral

golang translate-number-to-words convert-number ordinalize

Two functions that will convert a given number to the English ordinal numeral. Can be handy in developing chat bot….... 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 : Detect words using using consecutive letters in a given string

golang string words consecutive-letters repeat-alphabets

Got an interesting question asked by a member of Go Programming Language Facebook group. He is asking how to….... read more


Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter

jawi unicode rumi map translate

A simple example on how to use Golang's map to build a Jawi(Malays in Arabic script) to Rumi translation dictionary.….... read more


Golang : Translate language with language package example

golang language translate display translation

Just a simple example on how to use the language package to do language translation. Not a google translate type….... read more


Advertisement