[14] 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 : 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 : 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

Golang : bufio.NewReader.ReadLine to read file line by line

golang bufio-newreader read-line

In the previous tutorial on how to read file line by line with bufio.NewScanner() example. The previous example….... read more

Golang : Find the shortest line of text example

golang shortest-line strings-split

Continue from previous tutorial on how to find the longest line in a given text. This example demonstrates how to….... read more

Golang : Reverse text lines or flip line order example

golang reverse-line-order flip encrypt decrypt


You are given lines of text and you need to reverse the lines order before encrypting the text. Reversing….... 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 : Command line ticker to show work in progress

golangoverwrite-same-line ticker work-in-progress


Your command line application is crunching data and you want your program to show the user that it is….... read more