[26] Results

Golang : Repeat a character by multiple of x factor

golang python strings-repeat multiply-letters

In Python, it is pretty easy to repeat some characters inside a string. All you need to do is to….... 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 : 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 : How to join strings?

golang join combine strings

Apart from using fmt.Sprint() function to combine strings together. There is another way to concatenate string from different strings. One….... read more


Golang : How to check if a string contains another sub-string?

golang strings contains

Problem :

How to check if a string contains another sub-string in Golang?

Solution :

Use the strings.Contains() function.

.... read more


Golang : Aligning strings to right, left and center with fill example

golang align fill repeat-spaces string

Problem:

You are so used to Python way of aligning text strings such as ljust(), rjust() and center() and Golang's….... read more


Golang : Check if a string contains multiple sub-strings in []string?

golang strings contains filter sub-strings

Problem :

You have a string and you use strings.Contains() function to determine if there is a sub-string inside the….... read more


Golang : Transform comma separated string to slice example

golang comma-separated strings slice

Got a request from a junior software developer from India. Her question is how to convert a given comma-separated string….... read more


Advertisement