Explore >> Select a destination


You are here

avelino.run
| | livesys.se
5.4 parsecs away

Travel
| |
| | aarol.dev
3.8 parsecs away

Travel
| | TLDR: # http.ListenAndServe(":8080", nil) // bad http.ListenAndServe("localhost:8080", nil) // good If you are using Go with Windows, you might ...
| | cep.dev
5.8 parsecs away

Travel
| | Go's pprof package is frequently used for heap and CPU profiles, but a little used feature of the package is being able to create custom profiles.
| | www.integralist.co.uk
28.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,...