{"id":19756033,"url":"https://github.com/antomfdez/golit","last_synced_at":"2026-06-12T17:32:43.445Z","repository":{"id":259669622,"uuid":"878998794","full_name":"antomfdez/golit","owner":"antomfdez","description":"This repository implements a simple TCP listener in Go that listens for incoming connections on a specified port and prints the received data.","archived":false,"fork":false,"pushed_at":"2024-10-29T18:28:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T17:06:17.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antomfdez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-26T17:23:07.000Z","updated_at":"2024-10-29T18:28:19.000Z","dependencies_parsed_at":"2025-02-28T02:11:45.350Z","dependency_job_id":"36de5b13-6e56-45ff-a24c-baf8629ba123","html_url":"https://github.com/antomfdez/golit","commit_stats":null,"previous_names":["antomfdez/golit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antomfdez/golit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fgolit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fgolit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fgolit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fgolit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antomfdez","download_url":"https://codeload.github.com/antomfdez/golit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fgolit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34256180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T03:14:32.607Z","updated_at":"2026-06-12T17:32:43.344Z","avatar_url":"https://github.com/antomfdez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Golit\n\nThis repository implements a simple TCP listener in Go that listens for incoming connections on a specified port and prints the received data. It also includes graceful shutdown functionality to handle termination signals (`Ctrl+C`) cleanly.\n\n**Features:**\n\n- Accepts incoming TCP connections on a user-defined port.\n- Reads data from connected clients.\n- Prints received data to the console.\n- Handles `Ctrl+C` gracefully by closing connections before exiting.\n\n**Requirements:**\n\n- Go 1.17 or later ([https://go.dev/](https://go.dev/))\n\n**Getting Started:**\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/antomfdez/golit.git\n```\n\n2. Navigate to the project directory:\n```bash\ncd golit\n```\n\n3. Run the listener:\n```bash\ngo run ./cmd/golit -p 8080\n```\n\n- Replace 8080 with your desired port number.\n**Usage:**\n\n- The script accepts a single optional flag:\n\n- -p: The port number on which to listen (default: 8080).\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantomfdez%2Fgolit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantomfdez%2Fgolit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantomfdez%2Fgolit/lists"}