[16] Results

Golang : Serving HTTP and Websocket from different ports in a program example

golang web-socket HTTP port mux

Problem:

For some reason you want to split the port use by your program to serve HTTP and Web-socket traffic.….... read more


Golang : syscall.Socket example

golang socket

Just a comparison on how Golang code that utilize net package looks like if implemented with syscall.Socket example :

.... read more


PageSpeed : Clear or flush cache on web server

pagespeed httpd web flush-cache

Have to migrate one of my website to a new server(droplet) recently when the original server was corrupted by broken….... 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


Web : How to see your website from different countries?

web different-countries url

Problem :

You need to see(visually) how does your website looks like from different countries and you don't have multiple….... read more


Golang : Web routing/multiplex example

golang http mux web-route multiplex gorilla

Routing based on the URL's path can be useful in some cases like build RESTful API server.

Problem :

You….... read more


Golang : How to display image file or expose CSS, JS files from localhost?

golang web image CSS JS localhost

Problem :

You execute your Golang program on localhost and want to see images on localhost:8080, but your <img> HTML….... read more


Golang : How to extract links from web page ?

golang extract-links crawl-web-site parser

Golang's third party package goquery provides excellent tools to assist developers in building HTML parser/crawler. In this tutorial,….... read more


Advertisement

Advertisement