{"id":13722495,"url":"https://github.com/drael/GOnetstat","last_synced_at":"2025-05-07T15:30:42.206Z","repository":{"id":17559390,"uuid":"20362475","full_name":"drael/GOnetstat","owner":"drael","description":"Netstat implementation in Go","archived":false,"fork":false,"pushed_at":"2020-10-04T13:24:15.000Z","size":19,"stargazers_count":99,"open_issues_count":1,"forks_count":54,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-02-15T11:32:37.938Z","etag":null,"topics":["netstat"],"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/drael.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-31T18:40:59.000Z","updated_at":"2023-10-14T16:48:02.000Z","dependencies_parsed_at":"2022-08-27T20:11:24.218Z","dependency_job_id":null,"html_url":"https://github.com/drael/GOnetstat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drael%2FGOnetstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drael%2FGOnetstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drael%2FGOnetstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drael%2FGOnetstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drael","download_url":"https://codeload.github.com/drael/GOnetstat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252905556,"owners_count":21822824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["netstat"],"created_at":"2024-08-03T01:01:29.515Z","updated_at":"2025-05-07T15:30:41.902Z","avatar_url":"https://github.com/drael.png","language":"Go","funding_links":[],"categories":["Linux Specific"],"sub_categories":[],"readme":"# GOnetstat\n\nNetstat implementation in Golang.\n\nThis Package get data from /proc/net/tcp|6 and /proc/net/udp|6 and parse\n/proc/[0-9]*/fd/[0-9]* to match the correct inode.\n\n## Usage\n\n\u003cb\u003eTCP/UDP\u003c/b\u003e\n```go\ntcp_data := GOnetstat.Tcp()\nudp_data := GOnetstat.Udp()\n```\n\nThis will return a array of a Process struct like this\n\n```go\ntype Process struct {\n    User         string\n    Name         string\n    Pid          string\n    Exe          string\n    State        string\n    Ip           string\n    Port         int64\n    ForeignIp    string\n    ForeignPort  int64\n}\n```\nSo you can loop through data output and format the output of your program\nin whatever way you want it.\nSee the Examples folder!\n\n\u003cb\u003eTCP6/UDP6\u003c/b\u003e\n```go\ntcp6_data := GOnetstat.Tcp6()\nudp6_data := GOnetstat.Udp6()\n```\nThe return will be a array of a Process struct like mentioned above.\nStill need to create a way to compress the ipv6 because is too long.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrael%2FGOnetstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrael%2FGOnetstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrael%2FGOnetstat/lists"}