[23] Results

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 : Example of custom handler for Gorilla's Path usage.

golang gorilla route headers

In Gorilla WebToolkit's official documentation, the code fragment given in http://www.gorillatoolkit.org/pkg/mux#Route.Path does not show how to create custom….... read more

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 : 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 : Set or add headers for many or different handlers

golang set-headers http-response-writer http-request

Problem :

In Golang, setting headers can be done easily with the Set() method.

At the moment, you are setting….... 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 : 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