{"id":21601336,"url":"https://github.com/dominodatalab/os-release","last_synced_at":"2026-05-19T00:32:24.308Z","repository":{"id":75691727,"uuid":"175988964","full_name":"dominodatalab/os-release","owner":"dominodatalab","description":":computer: Parse and load OS identification data","archived":false,"fork":false,"pushed_at":"2019-05-22T01:18:12.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-01-24T18:27:09.301Z","etag":null,"topics":["golang","linux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dominodatalab.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":"2019-03-16T15:24:27.000Z","updated_at":"2019-05-22T01:18:14.000Z","dependencies_parsed_at":"2023-05-03T23:30:54.643Z","dependency_job_id":null,"html_url":"https://github.com/dominodatalab/os-release","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/dominodatalab%2Fos-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominodatalab%2Fos-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominodatalab%2Fos-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominodatalab%2Fos-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominodatalab","download_url":"https://codeload.github.com/dominodatalab/os-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244227560,"owners_count":20419261,"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":["golang","linux"],"created_at":"2024-11-24T19:09:03.518Z","updated_at":"2026-05-19T00:32:19.259Z","avatar_url":"https://github.com/dominodatalab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# os-release\n\n[![Build Status](https://travis-ci.org/dominodatalab/os-release.svg?branch=master)](https://travis-ci.org/dominodatalab/os-release)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dominodatalab/os-release)](https://goreportcard.com/report/github.com/dominodatalab/os-release)\n[![GoDoc](https://godoc.org/github.com/dominodatalab/os-release?status.svg)](https://godoc.org/github.com/dominodatalab/os-release)\n\nParse and load OS identification data.\n\n## Usage\n\nExample usage is show below.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\n\tosr \"github.com/dominodatalab/os-release\"\n)\n\nfunc main() {\n\tcontents, err := ioutil.ReadFile(\"/etc/os-release\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tinfo := osr.Parse(string(contents))\n\n\t// Inspect the distro lineage\n\tfmt.Printf(\"Is %q like fedora? %t\", info.Name, info.IsLikeFedora())\n\tfmt.Printf(\"Is %q like debian? %t\", info.Name, info.IsLikeDebian())\n\n\t// List all of the fields on the Data struct, such as ID/Name/Version and others.\n\tfmt.Printf(\"%#v\", info)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominodatalab%2Fos-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominodatalab%2Fos-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominodatalab%2Fos-release/lists"}