---
title: "Discussion on \"The http.Server Setup I Use in Every Go Project — Now Open Source\" | Hashnode"
description: "Discussion on \"The http.Server Setup I Use in Every Go Project — Now Open Source\". Every Go API I ship starts life with the same block of code.\nNot the handlers, not the routing. The server setup. Timeouts, signal handling, the shutdown dance. I'd copy it from the last project, chan"
url: "https://hashnode.com/posts/the-http-server-setup-i-use-in-every-go-project-now-open-source/6ad6e8e21208055693fa75db"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The http.Server Setup I Use in Every Go Project — Now Open Source](https://parsaaftabi.hashnode.dev/the-http-server-setup-i-use-in-every-go-project-now-open-source?utm_source=hashnode&utm_medium=feed)

Every Go API I ship starts life with the same block of code. Not the handlers, not the routing. The server setup. Timeouts, signal handling, the shutdown dance. I'd copy it from the last project, chan

Oct 20 · 4 min read · parsaaftabi.hashnode.dev  
Updated Nov 16  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Parsa Aftabi](https://hashnode.com/@parsaaftabi)

@parsaaftabi

  
[View profile](https://hashnode.com/@parsaaftabi)

I do computers, all the way down. Go and C++. I build small tools and write about how systems fail.

I do computers, all the way down. Backend and systems work in Go and C++, small open-source tools, and a low-level series on crash logs, page tables and kernel internals.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
