{"id":16100006,"url":"https://github.com/fooock/golang-c-shared-lib","last_synced_at":"2026-01-18T17:33:37.997Z","repository":{"id":128382606,"uuid":"135914008","full_name":"fooock/golang-c-shared-lib","owner":"fooock","description":"Sample go project to generate a C shared library","archived":false,"fork":false,"pushed_at":"2018-06-03T15:00:47.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T05:56:57.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/fooock.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}},"created_at":"2018-06-03T15:00:14.000Z","updated_at":"2018-06-03T15:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"41ee2246-5664-4dad-bdc6-3be4097a1317","html_url":"https://github.com/fooock/golang-c-shared-lib","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/fooock%2Fgolang-c-shared-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fgolang-c-shared-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fgolang-c-shared-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fgolang-c-shared-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fooock","download_url":"https://codeload.github.com/fooock/golang-c-shared-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415826,"owners_count":20935384,"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-09T18:44:45.249Z","updated_at":"2026-01-18T17:33:37.953Z","avatar_url":"https://github.com/fooock.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C shared libray with Golang\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSample project to generate a C sharid library from a go project. To generate the `header` file and the `.so` just \nexecute the task\n\n```sh\n$ make build\n````\n\nThis will generate a folder called `bin` with two files:\n\n```sh\n$ ls -la bin/\n-rw-r--r--  1 javi  staff     1520  3 jun 16:28 library.h\n-rw-r--r--  1 javi  staff  1461064  3 jun 16:28 library.so\n```\n\u003e These files for default are called `library`\n\nYou can change the `.h` and `.so` names using the `NAME` variable. Imagine that you want to name the files `customname`. Then you execute:\n\n```sh\n$ make build NAME=customname\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooock%2Fgolang-c-shared-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffooock%2Fgolang-c-shared-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooock%2Fgolang-c-shared-lib/lists"}