/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.alexedwards.net
| | bartlomiejmika.com

The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series.
3.2 parsecs

Travel
| |
| | 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,...
2.9 parsecs

Travel
| |
| | filipnikolovski.com

A blog about programming, technology and open-source stuff.
2.1 parsecs

Travel
| |
| | peterbraden.co.uk

[AI summary] The author shares a personal JavaScript raytracer project implemented in a browser using the canvas element, highlighting it as a blend of coding and art.
21.5 parsecs

Travel
|