[70] Results

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 : Write file with io.WriteString

golang write-file

Writing to a file in Golang is easy. There are couple of ways to do it. In this tutorial, we will show you how to….... read more


Golang : Change file read or write permission example

golang write-permission read-permission change-permissions

Problem :

You have a file and you need to change a file read, write or execute permission. How to….... read more


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 plain text file, if….... read more


Golang : Test file read write permission example

golang write-permission read-permission os-openfile os-ispermission

Problem :

You need to test if a file has the correct write or read permission before performing write or….... 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 : How to remove certain lines from a file

golang remove-by-line file data-processing read-text-file

Alright, here is a simple tutorial on how to remove certain lines of data from a file. There are times….... 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


Advertisement