{"id":37163153,"url":"https://github.com/remoteit/systemkit-platform-os","last_synced_at":"2026-01-14T19:24:25.502Z","repository":{"id":57548363,"uuid":"304214340","full_name":"remoteit/systemkit-platform-os","owner":"remoteit","description":null,"archived":false,"fork":true,"pushed_at":"2022-02-14T02:15:37.000Z","size":618,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T10:19:02.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"codemodify/systemkit-platform-os","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remoteit.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":"2020-10-15T04:55:55.000Z","updated_at":"2022-02-14T02:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/remoteit/systemkit-platform-os","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/remoteit/systemkit-platform-os","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remoteit%2Fsystemkit-platform-os","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remoteit%2Fsystemkit-platform-os/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remoteit%2Fsystemkit-platform-os/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remoteit%2Fsystemkit-platform-os/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remoteit","download_url":"https://codeload.github.com/remoteit/systemkit-platform-os/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remoteit%2Fsystemkit-platform-os/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T19:24:24.618Z","updated_at":"2026-01-14T19:24:25.476Z","avatar_url":"https://github.com/remoteit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![](https://fonts.gstatic.com/s/i/materialicons/bookmarks/v4/24px.svg) Detailed OS Detection at Runtime\n[![](https://img.shields.io/github/v/release/codemodify/systemkit-platform-os?style=flat-square)](https://github.com/codemodify/systemkit-platform-os/releases/latest)\n![](https://img.shields.io/github/languages/code-size/codemodify/systemkit-platform-os?style=flat-square)\n![](https://img.shields.io/github/last-commit/codemodify/systemkit-platform-os?style=flat-square)\n[![](https://img.shields.io/badge/license-0--license-brightgreen?style=flat-square)](https://github.com/codemodify/TheFreeLicense)\n\n![](https://img.shields.io/github/workflow/status/codemodify/systemkit-platform-os/qa?style=flat-square)\n![](https://img.shields.io/github/issues/codemodify/systemkit-platform-os?style=flat-square)\n[![](https://goreportcard.com/badge/github.com/codemodify/systemkit-platform-os?style=flat-square)](https://goreportcard.com/report/github.com/codemodify/systemkit-platform-os)\n\n[![](https://img.shields.io/badge/godoc-reference-brightgreen?style=flat-square)](https://godoc.org/github.com/codemodify/systemkit-platform-os)\n![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)\n![](https://img.shields.io/gitter/room/codemodify/systemkit-platform-os?style=flat-square)\n\n![](https://img.shields.io/github/contributors/codemodify/systemkit-platform-os?style=flat-square)\n![](https://img.shields.io/github/stars/codemodify/systemkit-platform-os?style=flat-square)\n![](https://img.shields.io/github/watchers/codemodify/systemkit-platform-os?style=flat-square)\n![](https://img.shields.io/github/forks/codemodify/systemkit-platform-os?style=flat-square)\n\n# ![](https://fonts.gstatic.com/s/i/materialicons/bookmarks/v4/24px.svg) Usage\n- as a library in Go code\n\t```go\n\tpackage main\n\n\timport (\n\t\t\"encoding/json\"\n\t\t\"fmt\"\n\t\t\"os\"\n\n\t\tplatformOS \"github.com/codemodify/systemkit-platform-os\"\n\t)\n\n\tfunc main() {\n\t\tdata, err := json.Marshal(platformOS.Info())\n\t\tif err != nil {\n\t\t\tfmt.Println(err.Error())\n\t\t}\n\n\t\tif len(os.Args) \u003e 1 \u0026\u0026 os.Args[1] == \"-p\" {\n\t\t\tdata, err = json.MarshalIndent(platformOS.Info(), \"\", \"    \")\n\t\t\tif err != nil {\n\t\t\t\tfmt.Println(err.Error())\n\t\t\t}\n\t\t}\n\n\t\tif\n\n\t\tfmt.Println(string(data))\n\n\t\tif osInfo.Name == platformOS.OS_Linux {\n\n\t\t\tfmt.Println(\"WE ARE ON Linux\")\n\t\t\tfmt.Println(\"Distro: \", osInfo.Distribution)\n\n\t\t} else if platformOS.IsBSD(osInfo.Name) {\n\n\t\t\tfmt.Println(\"WE ARE ON BSD family\")\n\n\t\t} else if platformOS.IsDarwin(osInfo.Name) {\n\n\t\t\tfmt.Println(\"WE ARE ON WINDOWS family\")\n\n\t\t} else if platformOS.IsWindows(osInfo.Name) {\n\n\t\t\tfmt.Println(\"WE ARE ON WINDOWS family\")\n\t\t}\n\t}\n\t```\n\n- as a binary on a a bunch of platforms\n\t- `https://github.com/codemodify/systemkit-platform-os/releases/latest`\n\t![](https://raw.githubusercontent.com/codemodify/systemkit-platform-os/master/.helper-files/dox/samples.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremoteit%2Fsystemkit-platform-os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremoteit%2Fsystemkit-platform-os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremoteit%2Fsystemkit-platform-os/lists"}