{"id":18376243,"url":"https://github.com/bunji2/cgo","last_synced_at":"2025-10-27T10:33:39.659Z","repository":{"id":95709781,"uuid":"120312888","full_name":"bunji2/cgo","owner":"bunji2","description":"Minimal samples of cgo","archived":false,"fork":false,"pushed_at":"2018-05-21T08:18:10.000Z","size":1857,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T14:55:25.962Z","etag":null,"topics":["c","cgo","go","golang","mingw","python2","windows"],"latest_commit_sha":null,"homepage":"","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/bunji2.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":"2018-02-05T14:07:09.000Z","updated_at":"2024-08-23T15:43:10.000Z","dependencies_parsed_at":"2023-05-21T17:15:06.835Z","dependency_job_id":null,"html_url":"https://github.com/bunji2/cgo","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/bunji2%2Fcgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunji2%2Fcgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunji2%2Fcgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunji2%2Fcgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bunji2","download_url":"https://codeload.github.com/bunji2/cgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804784,"owners_count":21164131,"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":["c","cgo","go","golang","mingw","python2","windows"],"created_at":"2024-11-06T00:22:28.175Z","updated_at":"2025-10-27T10:33:39.586Z","avatar_url":"https://github.com/bunji2.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal samples of CGO\r\n\r\n* [GoC] Calling C functions from Go program\r\n* [CGo] Calling Go functions from C program\r\n* [GoPy] Calling Python functions from Go program via C\r\n* [PyGo] Calling Go Functions from Python program via C\r\n\r\n## Environment\r\n\r\n* Windows 7 Professional SP1 64bit / Windows 10 Pro 64bit\r\n* Go 1.9.3 windows/amd64\r\n* MSYS64\r\n  * gcc (Rev2, Built by MSYS2 project) 7.3.0\r\n  * gnu make 4.2.1\r\n  * Python 2.7.14\r\n\r\n## Instaling MSYS64 / MINGW64\r\n\r\nDownload x86_64 installer from http://www.msys2.org/ and install.\r\n\r\nEnter following commands at your msys console.\r\n\r\n```\r\n$ pacman -Sy\r\n$ pacman -Su\r\n\r\n(you will restart msys console.)\r\n\r\n$ pacman -S base-devel\r\n$ pacman -S mingw-w64-x86_64-toolchain\r\n$ pacman -S mingw-w64-x86_64-python2\r\n```\r\n\r\n## Installing GoLang\r\n\r\nDownload x86_64 installer from https://golang.org/ and install.\r\n\r\n## Environment Variables\r\n\r\n```\r\nrem GoLang\r\nPATH C:\\Go\\bin;%PATH%\r\n\r\nrem MSYS64 / MINGW64\r\nPATH C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;%PATH%\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunji2%2Fcgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunji2%2Fcgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunji2%2Fcgo/lists"}