[17] Results

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 : Simple word wrap or line breaking example

golang line-break word-wrap slice-string

Problem:

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


Golang : Chunk split or divide a string into smaller chunk example

golang chunk-split line-break character-wrap rfc-2045

Problem:

You need a function in Golang that are similar to PHP's chunk_split() function that can split a string into….... read more


Golang : Warp text string by number of characters or runes example

golang line-break character-wrap rune-slice slice-character

Problem:

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


Golang : Read until certain character to break for loop

golang break-for-loop

Encounter a situation where I need to tell the editor that is time to save the input and exit while….... read more


Golang : Read a file line by line

golang read-file line-by-line

Got another newbie to Golang asking me for help today on how to read a file line by line. The….... read more


Golang : For loop continue,break and range

golang for continue break range

Feeling like writing about FOR loop today so....this tutorial will explore how Golang's FOR loop works.

For loop is….... read more


Golang : Read a file into an array or slice example

golang read-file slice array line-by-line

Ok, got a junior developer that wants to know how to read a text file content line by line into….... read more


Advertisement