[45] 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 : Issue HTTP commands to server and port example

golang net-conn dialtcp http-command

Problem :

You want to issue or write HTTP command to a connection created by net.DialTCP() function. How to do….... read more


Golang : Resolve domain name to IP4 and IP6 addresses.

golang net ip-address

In this short tutorial, we will learn how to resolve (find out) the IP, IP4 and maybe IP6 addresses for a domain name. Go's standard….... read more


Golang : Find network of an IP address

golang net network ip-address

We will learn how to use Golang's net package to find out the network behind an IP address. It is….... read more


Golang : Get host name or domain name from IP address

golang net network ip-address domain hostname

Thought this tutorial could be a good compliment to previous tutorial on how to find network of an….... 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 : 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 : Forwarding a local port to a remote server example

golang port-forwarding tcp-net io-copy remote-server

Got a strange request yesterday. A friend who is an IT manager in his company needs to implement some control….... read more


Advertisement