{"repo":"ebitengine/purego","free":true,"listed":false,"github":"https://github.com/ebitengine/purego","clone":"git clone https://github.com/ebitengine/purego.git","description":"A library for calling C functions from Go without Cgo","language":"Assembly","stars":3788,"topics":["cgo","go","golang","purego"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"purego A library for calling C functions from Go without Cgo. This is beta software so expect bugs and potentially API breaking changes but each release will be tagged to avoid breaking people's code. Bug reports are encouraged. Motivation The Ebitengine game engine was ported to use only Go on Windows. This enabled cross-compiling to Windows from any other operating system simply by setting GOOS=windows . The purego project was born to bring that same vision to the other platforms supported by Ebitengine. Benefits - Simple Cross-Compilation : No C means you can build for other platforms easily without a C compiler. - Faster Compilation : Efficiently cache your entirely Go builds. - Smaller Binaries : Using Cgo generates a C wrapper function for each C function called. Purego doesn't! - Dynamic Linking : Load symbols at runtime and use it as a plugin system. - Foreign Function Interface : Call into other languages that are compiled into shared objects. - Cgo Fallback : Works even with CGO ENABLED=1 so incremental porting is possible. This also means unsupported GOARCHs (freebsd/riscv64, linux/mips, etc.) will still work except for float arguments and return values. Supported Platforms Tier 1 Tier 1 platforms are the primary targets officially supported by PureGo. When a new version of PureGo is released, any critical bugs found on Tier 1 platforms are treated as release blockers. The release will be postponed until such issues are resolved. - Android : amd64 1 , arm64 1 - iOS","default_branch":null,"files":null,"tree":[],"storefront":"/r/ebitengine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ebitengine/purego/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}