[53] Results

Golang : read gzipped http response

golang http gzip exec

There are times when we want to grab a website content for parsing(crawling) and found out that the content is….... read more

Golang : How to redirect to new page with net/http?

golang web redirect http

Problem :

You need to do a page redirect in Golang. How to do it ?

Solution :

Use net/http.... read more

Golang : Check whether a network interface is up on your machine

golang network-interface probe-status interface-by-name


You have multiple network interfaces on your machine and you need to know the status of a particular network….... read more

Golang : Get hardware information such as disk, memory and CPU usage

golang cpu-usage cross-platform system-process-status operating-system

For this tutorial, we will learn how to extract hardware level information with Golang. Accessing hardware level information such as….... read more

Golang : ffmpeg with os/exec.Command() returns non-zero status

golang ffmpeg non-zero-status os-exec command run


You want to use ffmpeg with os/exec.Command() and Run() to create your video files.

However, it keeps bombing….... read more

Golang : Get HTTP protocol version example

golang http-protocol-version http-2

Upgraded socketloop.com's NGINX web server to serve via HTTP/2 and wanted to find out if Golang can detect the HTTP/2.... read more

Golang : How to protect your source code from client, hosting company or hacker?

golang hacking protect-source-code obfuscate

My friend is bidding for a project and was asked by his client to let them host his program on….... read more

Golang : Generate Code128 barcode

golang barcode code-128 paste-image

Generating Code 128 barcode in Golang can be done easily with this package ( https://github.com/boombuler/barcode ). We will….... read more