{"id":52457,"library":"kavu-go-reuseport","title":"TCP Reuse Port","description":"Package reuseport provides a net.Listener with SO_REUSEPORT socket option for TCP servers.","status":"active","version":"1.5.0","language":"go","source_language":null,"source_url":"https://github.com/kavu/go_reuseport","tags":["reuseport","tcp","listener","socket"],"install":[{"cmd":"go get github.com/kavu/go_reuseport","lang":"bash","label":"Install github.com/kavu/go_reuseport"}],"dependencies":[],"imports":[{"symbol":"reuseport","correct":"github.com/kavu/go_reuseport"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"github.com/kavu/go_reuseport\"\n)\n\nfunc main() {\n\tlistener, err := reuseport.Listen(\"tcp\", \":8080\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\thttp.Serve(listener, nil)\n}","lang":"go","description":"Creates a TCP listener with SO_REUSEPORT enabled on port 8080."},"warnings":[{"fix":"Use build tags or runtime checks to conditionally enable reuseport only on supported platforms.","message":"SO_REUSEPORT is only supported on Linux and some BSD systems; it will fail on Windows or macOS.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'listen':19 'net.listener':8 'option':13 'packag':4 'port':3 'provid':6 'reus':2 'reuseport':5,11,17 'server':16 'socket':12,20 'tcp':1,15,18","created_at":"2026-06-15T06:55:03.313193+00:00","updated_at":"2026-06-15T06:55:03.313193+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/kavu/go_reuseport","github":"https://github.com/kavu/go_reuseport","docs":"https://pkg.go.dev/github.com/kavu/go_reuseport#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}