Explore >> Select a destination


You are here

rakyll.org
| | www.integralist.co.uk
7.3 parsecs away

Travel
| | Introduction Four ways to skin a cat How does the adapter work? Why is this interesting? Summary/Breakdown Introduction Here is some code that demonstrates the typical 'hello world' for a Go based web server: package main import ( "fmt" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello %s", r.URL.Path[1:]) } func main() { http.HandleFunc("/World", handler) http.ListenAndServe(":8080", nil) } Note: http://localhost:8080/World will return Hello World For most people,...
| | pauladamsmith.com
1.3 parsecs away

Travel
| | This is a simple and easily generalizable way to put an upper-bound on the maximum number of simultaneous clients to a Go net/http server or handler. The idea is to use a counting semaphore, modeled with a buffered channel, to cause new clients to...
| | golb.hplar.ch
1.4 parsecs away

Travel
| | [AI summary] This article explains how to set up HTTP over TLS on a localhost server using Go, covering self-signed certificates and the mkcert tool to avoid browser warnings.
| | www.micah.soy
34.6 parsecs away

Travel
| There is a bug that impacts all versions of Internet Explorer.