[39] Results

Golang : Get current URL example

golang current-url hostname net-http

One of the common tasks that a web application developer will encounter is on how to get the currently viewed….... read more


Golang : How to Set or Add Header http.ResponseWriter?

golang header set add http-response-writer

Problem :

How to set or add header to http.ResponseWriter?

Solution :

The solution is similar to previous .... read more


Golang : Denco multiplexer example

golang http mux routes multiplexer denco

Kinda free today to test out couple of Golang's web multiplexers. One of the most interesting multiplexers that I've tried….... read more


Golang : Gorilla mux routing example

golang http mux web-route multiplex gorilla

This is a short tutorial on how to use Gorilla's mux. The code example below is taken from .... read more


Golang : Set up source IP address before making HTTP request

golang change-IP-address download wget custom-HTTP-transport

Problem :

There are times that you want to use certain IP address in a machine ( such as the….... read more


Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine

golang 403-forbidden no-index curl http-status-code

Got a question from a Golang newbie. He is asking how to protect certain directory or page from being accessed….... read more


Golang : How to log each HTTP request to your web server?

golang log-http-request save-log-to-file request-logger

Problem:

You want to log each HTTP request made to your web server complete with duration (start time - end….... read more


Advertisement

Advertisement