{"id":42409481,"url":"https://github.com/nothinux/go-ps","last_synced_at":"2026-01-28T01:43:10.475Z","repository":{"id":46114570,"uuid":"426914331","full_name":"nothinux/go-ps","owner":"nothinux","description":":penguin: find, list, and get information from process in linux with Go","archived":false,"fork":false,"pushed_at":"2022-06-09T15:39:21.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T19:42:28.623Z","etag":null,"topics":["go","golang","linux-process"],"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/nothinux.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}},"created_at":"2021-11-11T07:49:40.000Z","updated_at":"2024-01-05T19:55:44.000Z","dependencies_parsed_at":"2022-09-26T18:31:06.813Z","dependency_job_id":null,"html_url":"https://github.com/nothinux/go-ps","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nothinux/go-ps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothinux%2Fgo-ps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothinux%2Fgo-ps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothinux%2Fgo-ps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothinux%2Fgo-ps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nothinux","download_url":"https://codeload.github.com/nothinux/go-ps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothinux%2Fgo-ps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28832388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"ssl_error","status_checked_at":"2026-01-27T23:25:58.379Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","linux-process"],"created_at":"2026-01-28T01:43:08.842Z","updated_at":"2026-01-28T01:43:10.468Z","avatar_url":"https://github.com/nothinux.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐧 go-ps\ngo-ps is process library for find, list, and get information from linux process. go-ps read information about process from `/proc` file.\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/nothinux/go-ps)](https://goreportcard.com/report/github.com/nothinux/go-ps)  ![test status](https://github.com/nothinux/go-ps/actions/workflows/test.yml/badge.svg?branch=master)\n\n## Documentation\nsee [pkg.go.dev](https://pkg.go.dev/github.com/nothinux/go-ps)\n\n\n## Installation\n\n```\n$ go get github.com/nothinux/go-ps\n```\n\n### Getting Started\n#### Get All Running Process Name\n``` go\npackage main\n\nimport (\n    \"log\"\n    \"fmt\"\n    \"github.com/nothinux/go-ps\"\n)\n\nfunc main() {\n    process, err := ps.GetProcess()\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    for _, p := range process {\n        fmt.Println(p.Comm)\n    }\n}\n```\n\n#### Find Pid from Process Name\n``` go\npackage main\n\nimport (\n    \"log\"\n    \"github.com/nothinux/go-ps\"\n    \"fmt\"\n)\n\nfunc main() {\n    pid, err := ps.FindPid(\"nginx\")\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    fmt.Println(pid)\n}\n```\n\n#### Find Process then get information from that process\n``` go\npackage main\n\n\nimport (\n    \"log\"\n    \"github.com/nothinux/go-ps\"\n    \"fmt\"\n)\n\nfunc main() {\n    p, err := ps.FindProcessName(\"nginx\")\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    fmt.Println(\"process id:\", p.Pid)\n    fmt.Println(\"process name:\", p.Comm)\n    fmt.Println(\"process cmd:\", p.CmdLine)\n    fmt.Println(\"process state:\", p.State)\n\n}\n```\n\n[more](https://pkg.go.dev/github.com/nothinux/go-ps)\n\n\n## LICENSE\n[MIT](https://github.com/nothinux/go-ps/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothinux%2Fgo-ps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnothinux%2Fgo-ps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothinux%2Fgo-ps/lists"}