Skip to content

Instantly share code, notes, and snippets.

View xrennekamp's full-sized avatar

Frank Rennekamp xrennekamp

  • x.project AG
  • Frankfurt
View GitHub Profile
@xrennekamp
xrennekamp / main.go
Created June 19, 2019 09:34 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@xrennekamp
xrennekamp / handlers.go
Created May 29, 2019 15:02 — forked from dstroot/handlers.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"io"
"net/http"
"sync/atomic"
)
func index() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {