[58] Results

Golang : http.Get example

golang http get

Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more


Golang : Measure http.Get() execution time

golang measure-get-time http-get

There are times where you need to measure how long a http.Get() response time takes for debugging reason or network….... read more


Golang : Unmarshal JSON from http response

golang http get json unmarshal

For this tutorial, we will learn how to unmarshal JSON data retrieved from http.Get() function. Using the HTTP….... read more


Golang : Set and Get HTTP request headers example

golang set-headers get-headers http-responsewriter

Couple of examples on how to set and get HTTP request headers in Golang.

Example of setting HTTP request header.

.... read more


Golang : Get sub string example

golang get-sub-string

Getting sub string is a common task in extracting details from a larger set of information. Here is a quick….... read more


Apt-get to install and uninstall Golang

golang install uninstall apt-get

For this short tutorial, we will learn how to install, uninstall Golang with apt-get. We will also explore an interesting….... read more


Golang : Get current time

golang get-current-time

Problem :

Need to get current time stamp in Go and display in string.

Solution :

Use the time.Local() and….... read more


Golang : Intercept and compare HTTP response code example

golang http status-code

Problem :

You want to query a website and intercept the response code. You also want to compare the response….... read more


Advertisement