{"id":23408569,"url":"https://github.com/bitcav/go-memdev","last_synced_at":"2025-04-11T23:53:13.330Z","repository":{"id":57537628,"uuid":"285953129","full_name":"bitcav/go-memdev","owner":"bitcav","description":"Golang memory devices information :package:","archived":false,"fork":false,"pushed_at":"2020-08-14T01:18:50.000Z","size":44,"stargazers_count":15,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T23:53:08.578Z","etag":null,"topics":["dimm","go","golang","hardware","memory","ram"],"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/bitcav.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-08-08T01:46:08.000Z","updated_at":"2023-11-06T03:06:32.000Z","dependencies_parsed_at":"2022-09-07T17:35:40.156Z","dependency_job_id":null,"html_url":"https://github.com/bitcav/go-memdev","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcav%2Fgo-memdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcav%2Fgo-memdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcav%2Fgo-memdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcav%2Fgo-memdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcav","download_url":"https://codeload.github.com/bitcav/go-memdev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497850,"owners_count":21113984,"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":["dimm","go","golang","hardware","memory","ram"],"created_at":"2024-12-22T15:15:50.613Z","updated_at":"2025-04-11T23:53:13.308Z","avatar_url":"https://github.com/bitcav.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"Nitr\" height=\"200\" src=\"https://raw.githubusercontent.com/bitcav/go-memdev/master/images/logo.png\" style=\"max-width:100%;\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![go](https://raw.githubusercontent.com/bitcav/nitr/master/images/goversion.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bitcav/go-memdev)](https://goreportcard.com/report/github.com/bitcav/go-memdev)\n[![GoDoc](https://godoc.org/github.com/narqo/go-badge?status.svg)](https://godoc.org/github.com/bitcav/go-memdev)\n[![Build Status](https://travis-ci.org/bitcav/go-memdev.svg?branch=master)](https://travis-ci.org/bitcav/go-memdev)\n![preview](https://img.shields.io/badge/platform-linux%20%7C%20%20win-lightgrey)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/bitcav/go-memdev/blob/master/LICENSE)\n\n\u003c/div\u003e\n \n# go-memdev\n\nA Go package that access to **Memory Devices** information.\n\n## Installation\n```\ngo get -u github.com/bitcav/go-memdev\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/bitcav/go-memdev\"\n)\n\nfunc main() {\n\tmemInfo, _ := memdev.Info() //the returned value is a struct\n\n\tjsonOutput, _ := json.MarshalIndent(memInfo, \"\", \"    \")\n\n\tfmt.Println(string(jsonOutput))\n}\n\n```\n\nThe output is below.\n\n```json\n[\n    {\n        \"bank\": \"DIMM A\",\n        \"size\": 4096,\n        \"unit\": \"MB\",\n        \"type\": \"FBD2\",\n        \"formFactor\": \"SODIMM\",\n        \"manufacturer\": \"Samsung\",\n        \"serial\": \"A49F8D93\",\n        \"assetTag\": \"03153300\",\n        \"partNumber\": \"M471B5173DB0-YK0  \",\n        \"speed\": 1600,\n        \"dataWidth\": 64,\n        \"totalWidth\": 64\n    }\n]\n\n```\n\n\n## Running\n\n### Build\n```\ngo build\n```\n\n### Run\n:lock: In order to access the system BIOS requires running with elevated privileges.\n\n* Linux:\n```\nsudo ./main\n```\n\n* Windows:\n\nYou can launch the program as an administrator by right-clicking on the executable file and choosing \"Run as administrator.\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcav%2Fgo-memdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcav%2Fgo-memdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcav%2Fgo-memdev/lists"}