Skip to content

raeperd/kickstart.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kickstart.go

.github/workflows/build.yaml Go Report Card Coverage Status Mentioned in Awesome Go

Minimalistic HTTP server template in Go — single file, only standard library. Not a framework, but a starting point for building HTTP services.

Try it

$ git clone https://github.com/raeperd/kickstart.go.git && cd kickstart.go
$ make run
$ curl localhost:8080/health
{"version":"local","uptime":"1.23s","lastCommitHash":"abc1234","lastCommitTime":"2024-01-01T00:00:00Z","dirtyBuild":false}

Features

  • Graceful shutdown with SIGINT/SIGTERM signal handling
  • Health endpoint with version, git revision, and uptime
  • Debug endpoints (pprof, expvar) out of the box
  • Structured access logging and panic recovery middleware
  • Designed for testability — integration tests against a real server, no mocks

Start your own project

  • Use this template to create a new repository, or fork it
  • Find and replace all raeperd/kickstart.go with your repository name

Reference

About

Minimalistic HTTP server template in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors