|
You are here |
blog.ali.dev | ||
| | | | |
xn--blgg-hra.no
|
|
| | | | | ||
| | | | |
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,... | |
| | | | |
ghvsted.com
|
|
| | | | | The Go context package was developed to make it easy to pass request-scoped values, deadlines, and cancellation signals across API boundaries and processes. Thinking about Context in non-technical terms(?the circumstances that form the setting for an event, statement, or idea, and in terms of which it can be fully understood?) for a start could help us better understand Context as used technically. The context package comes in very handy when working with servers, making HTTP requests, and a host of othe... | |
| | | | |
www.maxpou.fr
|
|
| | | How I created dynamic Open Graph images for my Gatsby website | ||