{"id":17244692,"url":"https://github.com/kost/go-memorymodule","last_synced_at":"2025-10-04T18:18:58.981Z","repository":{"id":136773748,"uuid":"44472246","full_name":"kost/go-MemoryModule","owner":"kost","description":"Go binding example for MemoryModule","archived":false,"fork":false,"pushed_at":"2015-10-18T09:39:45.000Z","size":148,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T13:51:24.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/kost.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":"2015-10-18T09:24:10.000Z","updated_at":"2019-11-18T13:27:12.000Z","dependencies_parsed_at":"2023-03-13T13:16:37.674Z","dependency_job_id":null,"html_url":"https://github.com/kost/go-MemoryModule","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kost/go-MemoryModule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fgo-MemoryModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fgo-MemoryModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fgo-MemoryModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fgo-MemoryModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kost","download_url":"https://codeload.github.com/kost/go-MemoryModule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fgo-MemoryModule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261030748,"owners_count":23100007,"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":[],"created_at":"2024-10-15T06:27:01.926Z","updated_at":"2025-10-04T18:18:58.892Z","avatar_url":"https://github.com/kost.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-MemoryModule\nGo binding example for MemoryModule\n\nBuilding 64 bit version of Memory Module and Go. Tested with Ubuntu 14.04 LTS.\n\n\nInstall required packages:\n```\nsudo apt-get install cmake\nsudo apt-get install golang-go-linux-386 golang-go-windows-386 golang-go-windows-amd64\nsudo apt-get install g++-mingw-w64-x86-64 g++-mingw-w64-i686 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64\n```\n\nClone from this specific branch (until pull request is accepted):\n```\ncd /source\ngit clone -b fix-deprecated-wcsnicmp https://github.com/kost/MemoryModule.git\n```\n\nBuild MemoryModule:\n```\ncd MemoryModule\nmkdir build\ncmake ..\nmake VERBOSE=99\n```\n\nClone this example:\n\n```\ncd /source\ngit clone https://github.com/kost/go-MemoryModule.git\n```\n\nEdit loadl.go to include path of MemoryModule\n\n```\ncd go-MemoryModule\nvim loadl.go\n```\n\nBuild go loader:\n\n```\nexport GOOS=windows; export GOARCH=amd64; export CGO_ENABLED=1; export CXX=x86_64-w64-mingw32-g++; export CC=x86_64-w64-mingw32-gcc\nCGO_LDFLAGS=\"-g -lm\" GOGCCFLAGS=\"-m64 -fmessage-length=0\" CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o loadl.exe -x -v loadl.go\n```\n\nTest it:\n\n```\nwine loadl.exe \n```\n\nYou should get something like:\n\n```\nLoading DLL\nCan't open DLL file \"my.dll\"\n```\n\nAdjust the source to you needs and good luck!\n\nNote that you should properly reimplement reintrepret_cast for mingw (check loadl.h as I have just quickly made it to compile!). \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fgo-memorymodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkost%2Fgo-memorymodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fgo-memorymodule/lists"}