github.com/xlab/c-for-go
v1.3.0
#999 most downloaded on Go modules
xlab/c-for-go
What this package is like to depend on
Last release 5 months ago
05 Mar 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 4 of 4 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
47 releases · first in 2018
1 release in the last 12 months
see the full history below
Release timeline
47 releases · Feb 2018 to Mar 2026Releases
latest 47-
v1.3.1-0.20260305101747-6dd1c017f91e05 Mar 2026 pre-releaseNothing published for this version
-
v1.3.1-0.20250505044626-db13c930279205 May 2025 pre-releaseNothing published for this version
-
v1.3.1-0.20241228070108-33bc71f1a64328 Dec 2024 pre-releaseNothing published for this version
-
v1.3.026 Aug 2024Release notes
Open source →What's Changed
- Fix for issue #167 - pass an array to the C function that modifies it and read it after function exec by @nivanov-ati in #169
- Update
modernc.org/cc/v4to latest version by @sue445 in #171
New Contributors
- @nivanov-ati made their first contribution in #169
- @sue445 made their first contribution in #171
Full Changelog: v1.2.0...v1.3.0
-
v1.2.1-0.20240826081720-b65887594a9926 Aug 2024 pre-releaseNothing published for this version
-
v1.2.1-0.20240617211918-faecbae1653417 Jun 2024 pre-releaseNothing published for this version
-
v1.2.004 Mar 2024Release notes
Open source →What's Changed
- Feat symbol validation by @fishingfly in #166
New Contributors
- @fishingfly made their first contribution in #166
Full Changelog: v1.1.0...v1.2.0
-
v1.1.1-0.20240304105158-06bec1a4f4a604 Mar 2024 pre-releaseNothing published for this version
-
v1.1.026 Feb 2024Release notes
Open source →What's Changed
- Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 by @dependabot in #163
- A few changes needed to support go-libvirt by @mpontillo in #164
New Contributors
- @dependabot made their first contribution in #163
- @mpontillo made their first contribution in #164
Full Changelog: v1.0.0...v1.1.0
-
v1.0.1-0.20240226231906-850240e7600126 Feb 2024 pre-releaseNothing published for this version
-
v1.0.1-0.20240211170554-623b32c75bc511 Feb 2024 pre-releaseNothing published for this version
-
v1.0.006 Sep 2023Release notes
Open source →It's time to release a version
Since this project's original inception, many contributors from the community and users made a lots of useful changes, but I've never published any "official" release, so it becomes harder to track the changes. I'm going to fix this by releasing this "genesis" v1.0.0 version.
While it works fine for lots of use cases and is much better than my original work, thanks to all the improvements, it's still not perfect, as you can see in the Issues Tab.
If you want to contribute to the project, it's the right time to do so - simply open a pull request. I encourage companies who forked the tool and improved it in some way for internal pipelines, to come back with good PRs. Myself and many other users will be grateful.
🎉
What's Changed
- Add EnableWideEnumValues and EnableWideBitFieldTypes by @pwaller in #12
- Move */{test => testdata} by @pwaller in #25
- Output declarations in sorted order by name. by @pwaller in #27
- Pass function pointer instead of ¶meter by @pwaller in #30
- Workaround issue #100 in cc by @CtrlZvi in #31
- fix parameter names for the __GNUC_PREREQ macro by @trapgate in #45
- Normalize pointers for callback function return specs by @jackwakefield in #50
- Change Data in the slice/string headers to unsafe.Pointer by @jackwakefield in #51
- Comply with expected header for generated Go code by @mdlayher in #52
- Invalid settings of sliceHeader.Data by @raff in #57
- Accessor Functions for C structs by @gmp216 in #61
- Update xc to modernc.org/xc. in #70
- Allow for object oriented c bindings by @jhlange in #73
- Always output forward slashes in generate comments. by @russ- in #87
- Fix parse error for empty constants by @pwaller in #90
- module support by @jclc in #95
- Fix/2 mem issues by @dtynn in #91
- use explicit double-\n to avoid golint warning by @dankamongmen in #100
- Check that generator is successfully created before using by @chrisroberts in #103
- Enable modernc.org/cc tweak: parenthesized compound statement by @epsleq0 in #111
- Fixing code generation with unsafe prefix by @lotodore in #126
- Update cc to v4 and add unit tests by @lotodore in #127
- Fixing #132 by @lotodore in #134
- adjust type_mapping if processor's data model uses 64bit long integers by @bearsh in #139
- add support for int128 and uint128 types by @jstrachan in #148
- add an optional expression which can be used to default a slice length by @jstrachan in #149
- Add support for additional float types by @bobbyluig in #156
New Contributors
- @pwaller made their first contribution in #12
- @CtrlZvi made their first contribution in #31
- @trapgate made their first contribution in #45
- @jackwakefield made their first contribution in #50
- @mdlayher made their first contribution in #52
- @raff made their first contribution in #57
- @gmp216 made their first contribution in #61
- @jhlange made their first contribution in #73
- @russ- made their first contribution in #87
- @jclc made their first contribution in #95
- @dtynn made their first contribution in #91
- @dankamongmen made their first contribution in #100
- @chrisroberts made their first contribution in #103
- @epsleq0 made their first contribution in #111
- @lotodore made their first contribution in #126
- @bearsh made their first contribution in #139
- @jstrachan made their first contribution in #148
- @bobbyluig made their first contribution in #156
Full Changelog: https://github.com/xlab/c-for-go/commits/v1.0.0
-
v0.0.0-20240826081720-b65887594a9926 Aug 2024 pre-releaseNothing published for this version
-
v0.0.0-20240211170554-623b32c75bc511 Feb 2024 pre-releaseNothing published for this version
-
v0.0.0-20230906092656-a1822f0a09c106 Sep 2023 pre-releaseNothing published for this version
-
v0.0.0-20230525154154-591bf68d0b1e25 May 2023 pre-releaseNothing published for this version
-
v0.0.0-20230523183201-561696b1b1a423 May 2023 pre-releaseNothing published for this version
-
v0.0.0-20221118134302-231d72d2aa8718 Nov 2022 pre-releaseNothing published for this version
-
v0.0.0-20221117205026-5400ce7106ab17 Nov 2022 pre-releaseNothing published for this version
-
v0.0.0-20221031195837-eaf8c81cbbe731 Oct 2022 pre-releaseNothing published for this version
-
v0.0.0-20220829165036-c95ebd03aba929 Aug 2022 pre-releaseNothing published for this version
-
v0.0.0-20220810182948-cef5ec7833f310 Aug 2022 pre-releaseNothing published for this version
-
v0.0.0-20220810105102-93316bba6d9b10 Aug 2022 pre-releaseNothing published for this version
-
v0.0.0-20201223145653-3ba5db515dcb23 Dec 2020 pre-releaseNothing published for this version
-
v0.0.0-20201222212620-9a426bcc5e5622 Dec 2020 pre-releaseNothing published for this version
-
v0.0.0-20201127223026-3db16f69d80f27 Nov 2020 pre-releaseNothing published for this version
-
v0.0.0-20201127183620-5999f086c44927 Nov 2020 pre-releaseNothing published for this version
-
v0.0.0-20201115191903-ddcfe267305315 Nov 2020 pre-releaseNothing published for this version
-
v0.0.0-20201112171043-ea6dce5809cb12 Nov 2020 pre-releaseNothing published for this version
-
v0.0.0-20201112140819-582a2294915d12 Nov 2020 pre-releaseNothing published for this version
-
v0.0.0-20201012151547-73cdccf1de2412 Oct 2020 pre-releaseNothing published for this version
-
v0.0.0-20201002084316-c134bfab968f02 Oct 2020 pre-releaseNothing published for this version
-
v0.0.0-20200718154222-87b0065af82918 Jul 2020 pre-releaseNothing published for this version
-
v0.0.0-20200711190552-7966cbf704cb11 Jul 2020 pre-releaseNothing published for this version
-
v0.0.0-20200421030540-b3fe97e86de821 Apr 2020 pre-releaseNothing published for this version
-
v0.0.0-20200417200139-ce3604ed90a117 Apr 2020 pre-releaseNothing published for this version
-
v0.0.0-20200116014644-76fdc4a0175316 Jan 2020 pre-releaseNothing published for this version
-
v0.0.0-20191214212551-9792c56dedfa14 Dec 2019 pre-releaseNothing published for this version
-
v0.0.0-20190821155445-8eeee8c3b71f21 Aug 2019 pre-releaseNothing published for this version
-
v0.0.0-20190521115204-834d7b4da59f21 May 2019 pre-releaseNothing published for this version
-
v0.0.0-20190220095102-4323a391cc7220 Feb 2019 pre-releaseNothing published for this version
-
v0.0.0-20181228111153-c220fac3739728 Dec 2018 pre-releaseNothing published for this version
-
v0.0.0-20181014175115-d57f9ec2a5f514 Oct 2018 pre-releaseNothing published for this version
-
v0.0.0-20181014174034-b76a77f3b53a14 Oct 2018 pre-releaseNothing published for this version
-
v0.0.0-20180820102528-4b340423d17920 Aug 2018 pre-releaseNothing published for this version
-
v0.0.0-20180521201427-bdafa64ab46721 May 2018 pre-releaseNothing published for this version
-
v0.0.0-20180214005005-41d152ce4f3414 Feb 2018 pre-releaseNothing published for this version