[9] Results

Golang : Word limiter example

golang slice-to-string word-limiter count-words


You want to limit a string to X number of words. How to do that?


Break the string….... read more

Golang : Characters limiter example

golang character-limiter io-readatleast


You want to limit a string to X number of characters. How to do that?


Use io.ReadAtLeast() function….... read more

Golang : Reverse by word

golang reverse by-word

This tutorial will show you how to reverse the order of words in a string. Reversing the words or elements….... read more

Golang : How to check if input string is a word?

golang check-word regexp-syntax

Problem :

I'm writing a parser and I need to determine if the user input is a word or something….... read more

Golang : Convert word to its plural form example

golang pluralize singular-word item-in-slice

Here is a program that will convert a singular word into its plural form and at the same time, perform….... read more

Golang : Simple word wrap or line breaking example

golang line-break word-wrap slice-string


You have a long text string and you want to wrap the text according to a given number of….... read more

Golang : Find the longest line of text example

golang line-break word-wrap longest-line strings-split

Ability to find the longest find in a given text file can be useful in a situation where you want….... read more

Golang : Scramble and unscramble text message by randomly replacing words

golang rotrandom word-substitution roll-dice map

For this tutorial, we will learn how to make a text string unreadable by replacing some of the words inside….... read more