[69] Results

Golang : Get download file size

golang download-size filename-from-url content-length

Part of a good user experience is to let your users know in advance what are the next expected actions….... 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 more


Golang : Move file to another directory

golang move-file

So far, Go does not have a function to directly move file to different folders. We have to provide our….... read more


Golang : Process non-XML/JSON formatted ASCII text file example

golang raw-data-file non-XML non-JSON save-file

Problem:

You have to process raw data files produced by third-party servers that you have no control over. The files….... read more


Golang : Download file example

golang download file

Continuing from previous tutorial on how to use http.Get() function, in this tutorial, we will learn how to….... 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….... read more


Golang : Calculate entire request body length during run time

golang content-length request-header entire-request-body

Problem:

You are trying to figure out what to fill into the number_of_bytes_in_entire_request_body field when making a http.NewRequest(). You need….... read more


Golang : Save(pipe) HTTP response into a file

golang http file

Problem :

You want to save or pipe a website content via http.Get() function to a file for processing.

Solution….... read more


Advertisement