<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp" -->

---
title: Issue #617: Building cgo code without a C compiler? — Go...
description: This Go Weekly digest covers a proposal to let Go build cgo packages without needing a C compiler by describing C interfaces in annotated Go files, along with...
canonical: https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Issue #617: Building cgo code without a C compiler? — Go Weekly | daily.dev
og:description: This Go Weekly digest covers a proposal to let Go build cgo packages without needing a C compiler by describing C interfaces in annotated Go files, along with...
og:url: https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp
og:image: https://api.daily.dev/og/posts/IA0Tt0gNp.png
og:image:alt: Issue #617: Building cgo code without a C compiler? — Go Weekly
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Issue #617: Building cgo code without a C compiler? — Go Weekly

**[Golang Weekly](https://daily.dev/sources/glw)** · 4 min read · 21 upvotes · 1 comments

## Summary

This Go Weekly digest covers a proposal to let Go build cgo packages without needing a C compiler by describing C interfaces in annotated Go files, along with related cgo-avoidance efforts. Ebitengine 2.10 ships fully cgo-free on desktop platforms (macOS, Linux, BSD) using the purego library, easing cross-compilation. Other items include a likely Go 1.28 change rejecting string(x) conversions for non-byte/rune integers, encoding/json/v2 performance work responding to benchmarks showing it slower than v1 in some cases, a new core Go team hire, gomodjail 2.0 for sandboxing Go modules, VHS 0.12 terminal recorder updates, and several smaller library releases (Oto 3.5, gofumpt 0.12, go-tui 0.20, workers-go 0.35, TZF 2.0, go-brrr 1.1).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://golangweekly.com/issues/617>

## Questions this post answers

### How did Ebitengine 2.10 remove the cgo dependency on Linux, macOS, and BSD?

Ebitengine 2.10 uses purego, the Ebitengine team's own library for calling C functions from Go without cgo, to become fully cgo-free on macOS, Linux, and BSD desktop platforms, joining Windows which already worked this way. This makes cross-compiling Ebitengine-based apps much easier since a C toolchain is no longer required.

_Track cgo-free Go tooling changes like this on daily.dev before your next cross-compile build breaks._

### Is Go 1.28 going to disallow converting non-byte or non-rune integers to string?

Yes, Go 1.28 seems likely to reject string(x) conversions for integer types other than byte or rune, aligning the compiler with warnings go vet already gives. Rob Pike originally proposed this restriction 14 years earlier, and it has now moved toward acceptance in the Go issue tracker.

_Follow upcoming Go language changes like this on daily.dev before they break your build._

### Is the new encoding/json/v2 package in Go actually faster than the original encoding/json?

Not universally: benchmarking found encoding/json/v2 up to 1.5x slower than v1 in some cases despite being pitched as an improvement. In response, pending code changes under review aim to make v2 marshal slices about 4% faster than v1, showing the performance story is still being worked out.

_Check performance benchmarks like this on daily.dev before switching your project to encoding/json/v2._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> I can't make sense of requiring a C compiler just to link a prebuilt library

## Similar posts on daily.dev

- [Issue \#620: Hooking into the Go toolchain — Go Weekly](https://daily.dev/posts/issue-620-hooking-into-the-go-toolchain-go-weekly-oolyvpixq) · Golang Weekly · 1 upvotes · 0 comments
- [Issue \#602: Go gets an official package API — Go Weekly](https://daily.dev/posts/issue-602-go-gets-an-official-package-api-go-weekly-riizkw8d5) · Golang Weekly · 6 upvotes · 0 comments
- [Issue \#611: Go can't kill a stuck goroutine — Go Weekly](https://daily.dev/posts/issue-611-go-can-t-kill-a-stuck-goroutine-go-weekly-q2lj7rsf3) · Golang Weekly · 5 upvotes · 0 comments

---

Tags: [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Issue #617: Building cgo code without a C compiler? — Go Weekly","url":"https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp"},"datePublished":"2026-09-11T13:03:51.817Z","dateModified":"2026-10-15T02:22:58.427Z","description":"This Go Weekly digest covers a proposal to let Go build cgo packages without needing a C compiler by describing C interfaces in annotated Go files, along with...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"Golang Weekly","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Golang Weekly","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/glw","url":"https://daily.dev/sources/glw"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":21},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"golang","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Golang Weekly","item":"https://daily.dev/sources/glw"},{"@type":"ListItem","position":3,"name":"Issue #617: Building cgo code without a C compiler? — Go Weekly"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp","comment":[{"@type":"Comment","text":"I can’t make sense of requiring a C compiler just to link a prebuilt library","datePublished":"2026-09-13T09:05:37.035Z","url":"https://daily.dev/posts/IA0Tt0gNp#c-m7X0c33DD","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/issue-617-building-cgo-code-without-a-c-compiler-go-weekly-ia0tt0gnp#faq","mainEntity":[{"@type":"Question","name":"How did Ebitengine 2.10 remove the cgo dependency on Linux, macOS, and BSD?","acceptedAnswer":{"@type":"Answer","text":"Ebitengine 2.10 uses purego, the Ebitengine team's own library for calling C functions from Go without cgo, to become fully cgo-free on macOS, Linux, and BSD desktop platforms, joining Windows which already worked this way. This makes cross-compiling Ebitengine-based apps much easier since a C toolchain is no longer required. Track cgo-free Go tooling changes like this on daily.dev before your next cross-compile build breaks."}},{"@type":"Question","name":"Is Go 1.28 going to disallow converting non-byte or non-rune integers to string?","acceptedAnswer":{"@type":"Answer","text":"Yes, Go 1.28 seems likely to reject string(x) conversions for integer types other than byte or rune, aligning the compiler with warnings go vet already gives. Rob Pike originally proposed this restriction 14 years earlier, and it has now moved toward acceptance in the Go issue tracker. Follow upcoming Go language changes like this on daily.dev before they break your build."}},{"@type":"Question","name":"Is the new encoding/json/v2 package in Go actually faster than the original encoding/json?","acceptedAnswer":{"@type":"Answer","text":"Not universally: benchmarking found encoding/json/v2 up to 1.5x slower than v1 in some cases despite being pitched as an improvement. In response, pending code changes under review aim to make v2 marshal slices about 4% faster than v1, showing the performance story is still being worked out. Check performance benchmarks like this on daily.dev before switching your project to encoding/json/v2."}}]}
```

