|
You are here |
sent-hil.com | ||
| | | | |
www.alexedwards.net
|
|
| | | | | [AI summary] The article demonstrates various Go web application techniques including HTTP response handling, templating, and file serving with examples and code snippets. | |
| | | | |
www.alexedwards.net
|
|
| | | | | [AI summary] A technical guide explains how to manage Go program database timeouts and cancellations to prevent resource leaks and handle client disconnects in web applications. | |
| | | | |
bartlomiejmika.com
|
|
| | | | | Learn how to protect API endpoints with access and refresh tokens using the third-party jwt-go library. | |
| | | | |
www.integralist.co.uk
|
|
| | | 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,... | ||