{"id":19769428,"url":"https://github.com/goplus/libc","last_synced_at":"2025-04-30T17:31:13.300Z","repository":{"id":37033816,"uuid":"476164369","full_name":"goplus/libc","owner":"goplus","description":"Porting libc from C to Go","archived":false,"fork":false,"pushed_at":"2024-04-15T07:01:14.000Z","size":7207,"stargazers_count":24,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"musl-go","last_synced_at":"2024-04-20T09:16:03.876Z","etag":null,"topics":["c","c2go","go","golang","gop","goplus","libc","musl"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goplus.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":"2022-03-31T05:32:35.000Z","updated_at":"2024-05-06T05:38:25.840Z","dependencies_parsed_at":"2023-02-01T05:00:23.606Z","dependency_job_id":"cfc3ff8d-9c2e-4569-b9d2-1d1cbe97242f","html_url":"https://github.com/goplus/libc","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goplus%2Flibc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goplus%2Flibc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goplus%2Flibc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goplus%2Flibc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goplus","download_url":"https://codeload.github.com/goplus/libc/tar.gz/refs/heads/musl-go","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251751132,"owners_count":21637869,"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","c2go","go","golang","gop","goplus","libc","musl"],"created_at":"2024-11-12T04:43:06.168Z","updated_at":"2025-04-30T17:31:11.245Z","avatar_url":"https://github.com/goplus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"libc - Porting libc from C to Go\n======\n\n[![Build Status](https://github.com/goplus/libc/actions/workflows/go.yml/badge.svg)](https://github.com/goplus/libc/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/goplus/libc)](https://goreportcard.com/report/github.com/goplus/libc)\n[![GitHub release](https://img.shields.io/github/v/tag/goplus/libc.svg?label=release)](https://github.com/goplus/libc/releases)\n[![Coverage Status](https://codecov.io/gh/goplus/libc/branch/musl-go/graph/badge.svg)](https://codecov.io/gh/goplus/libc)\n[![GoDoc](https://pkg.go.dev/badge/github.com/goplus/libc.svg)](https://pkg.go.dev/mod/github.com/goplus/libc)\n[![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop)\n[![Interpreter](https://img.shields.io/badge/interpreter-iGo+-seagreen.svg)](https://github.com/goplus/igop)\n\nThis is a subproject of [the c2go project](https://github.com/goplus/c2go).\n\n## What's our plan?\n\n- First, port `printf` and its dependent C functions to Go. Stage: `Almost Done`, see [supported C standard libary types/functions/variables](https://github.com/goplus/libc/blob/musl-go/c2go.a.pub).\n- Second, support libc in [the Go+ language](https://github.com/goplus/gop). Stage: `Done`, see [how Go+ interacts with C](https://github.com/goplus/gop/tree/main/testdata/helloc2go).\n- Third, port musl `libc-test` project to Go. Stage: `Doing`, see [ported test cases](https://github.com/goplus/libc/blob/musl-go/xz_libtest_test.go).\n- Fourth, port all `sqlite3` dependent C functions. Stage: `Planning`, see [sqlite3 dependent fuctions](https://github.com/goplus/sqlite/blob/main/c2go_autogen.go).\n- Last, support most of C standard library functions and can import them by Go+. Stage: `Planning`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoplus%2Flibc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoplus%2Flibc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoplus%2Flibc/lists"}