{"id":63881,"library":"tylerb-graceful-v1","title":"Graceful","description":"Graceful shutdown of Go HTTP servers with support for timeouts and interrupts.","status":"active","version":"1.2.15","language":"go","source_language":null,"source_url":"https://github.com/tylerb/graceful","tags":["graceful","shutdown","http","server"],"install":[{"cmd":"go get gopkg.in/tylerb/graceful.v1","lang":"bash","label":"Install gopkg.in/tylerb/graceful.v1"}],"dependencies":[],"imports":[{"symbol":"graceful","correct":"gopkg.in/tylerb/graceful.v1"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"time\"\n\t\"gopkg.in/tylerb/graceful.v1\"\n)\n\nfunc main() {\n\tmux := http.NewServeMux()\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"Hello\"))\n\t})\n\tgraceful.Run(\":8080\", 10*time.Second, mux)\n}","lang":"go","description":"Start an HTTP server with graceful shutdown on interrupt."},"warnings":[{"fix":"Use gopkg.in/tylerb/graceful.v1 for v1.x, or migrate to github.com/tylerb/graceful for newer versions.","message":"The v1 API uses a different import path than later versions.","severity":"breaking","affected_versions":">=1.0.0 <2.0.0"}],"env_vars":null,"search_vec":"'go':5 'grace':1,2,14 'http':6,16 'interrupt':13 'server':7,17 'shutdown':3,15 'support':9 'timeout':11","created_at":"2026-06-17T16:49:03.883147+00:00","updated_at":"2026-06-17T16:49:03.883147+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tylerb/graceful","github":"https://github.com/tylerb/graceful","docs":"https://pkg.go.dev/gopkg.in/tylerb/graceful.v1#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}