{"id":19149960,"url":"https://github.com/andreiavrammsd/cgo-examples","last_synced_at":"2026-03-05T09:31:52.273Z","repository":{"id":92015726,"uuid":"219071086","full_name":"andreiavrammsd/cgo-examples","owner":"andreiavrammsd","description":"Examples of calling C code from Go","archived":false,"fork":false,"pushed_at":"2025-04-25T16:04:40.000Z","size":5,"stargazers_count":30,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T04:45:47.031Z","etag":null,"topics":["c","cgo","go"],"latest_commit_sha":null,"homepage":"https://blog.andreiavram.ro/golang-cgo-examples/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreiavrammsd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-11-01T22:21:19.000Z","updated_at":"2025-04-25T16:03:29.000Z","dependencies_parsed_at":"2025-05-07T04:45:53.152Z","dependency_job_id":"2adb62b4-3120-4a85-bb59-3c90759ae110","html_url":"https://github.com/andreiavrammsd/cgo-examples","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andreiavrammsd/cgo-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fcgo-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fcgo-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fcgo-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fcgo-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreiavrammsd","download_url":"https://codeload.github.com/andreiavrammsd/cgo-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreiavrammsd%2Fcgo-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["c","cgo","go"],"created_at":"2024-11-09T08:10:13.588Z","updated_at":"2026-03-05T09:31:52.245Z","avatar_url":"https://github.com/andreiavrammsd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CGO Examples\n\nExamples of calling C code from Go (including a test C library). Passing and getting numbers, strings, enums, structs, callbacks.\n\n### Build and run Docker env\n```bash\nmake env\n```\n\n### Compile and run app\n```bash\nmake\n```\n\nSee [Makefile](Makefile)\n\n### Docs\n* https://golang.org/cmd/cgo/\n* https://blog.golang.org/c-go-cgo\n* https://github.com/golang/go/wiki/cgo\n* https://gist.github.com/zchee/b9c99695463d8902cd33\n* https://dev.to/mattn/call-go-function-from-c-function-1n3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiavrammsd%2Fcgo-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreiavrammsd%2Fcgo-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiavrammsd%2Fcgo-examples/lists"}