[12] Results

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


Golang : Count leading or ending zeros(any item of interest) example

golang leading-zero count-spaces count-ending

Problem:

You want to count the number of leading spaces or zeros in a string such as

000-123-456 ,….... read more


Golang : How to count the number of repeated characters in a string?

golang count repeat characters string

Problem :

You want to develop a new algorithm that somehow will reduce or compress the size of a string….... 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 : 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 : 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 : Count number of digits from given integer value

golang count-digit integer signal

Just a simple program to count number of digits from a given integer value. Need this to calculate if an….... read more


Golang : How to count duplicate items in slice/array?

golang count-duplicate slice array

Problem :

You need to count the number of duplicate items in a slice or array.

Solution :

Pseudo-code :….... read more


Advertisement

Advertisement