[34] Results

Golang : Command line file upload program to server example

golang command-line-upload CreateFormFile mime-multipartFormDataContentType

Writing this tutorial for a friend who is using Golang to develop her IoT application. She needs a client program….... read more

Golang : Play .WAV file from command line

golang portaudio go-wave audio command-line


You have recorded your voice on a .wav file with the previous tutorial on how to activate….... 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

Upload multiple files with Go

upload-multiple golang

Uploading multiple files to Go server can be done easily as well. All you need to do is to parse the multiform data and loop….... read more

Golang : How to verify uploaded file is image or allowed file types

golang image detect-types upload

Problem :

How do I verify if an uploaded file to my server is ... let say I only allow….... 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 : Execute shell command

shell-command exec

A programming language will not be complete if there is no way for the developer to execute shell command. In this tutorial, we will show….... 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