Go module: github.com/rahilsh/go-server (requires Go 1.25+)
go run server.go
Or build and run:
go build -o server server.go
./server
curl localhost:3000/
Response:
Hello world!
curl localhost:3000/books
The client fetches a TODO from JSONPlaceholder:
go run client.go