[65] Results

Golang : Read file with ioutil

golang read-file

This tutorial will show you how to read a file into buffer and display the content in Go. This example….... read more


Golang : Read file and convert content to string

golang read-file ioutil

Problem :

You want to read a file content and convert the content into string.

Solution :

Read the file….... read more


Golang : Read file

golang read-file

This is the most basic way of how to read a file into buffer and display its content chunk by….... read more


Golang : Read data from config file and assign to variables

golang read-file configuration parameters

Usually a large program will need multiple parameters to function properly and the parameters will determine the behavior of the….... 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 : Convert an executable file into []byte example

golang byte-conversion write-read-file c executable

This small utility program will read an executable file(or just any file) and convert the content into a []byte slice.….... read more


Golang : Skip or discard items of non-interest when iterating example

golang read-file skip-iterable-item strings-index

Problem:

You want to skip or discard items of non-interest when iterating. For example, skipping the commented lines with #.... read more


Advertisement