hajimehoshi / hitsumabushi

Run Go programs (almost) everywhere

Repository from Github https://github.comhajimehoshi/hitsumabushiRepository from Github https://github.comhajimehoshi/hitsumabushi

Hitsumabushi (ひつまぶし)

Package hitsumabushi provides APIs to generate JSON for go-build's -overlay option. Hitsumabushi aims to make Go programs work on almost everywhere by overwriting system calls with C function calls. Now the generated JSON works only for Linux/Arm64 and Windows/Amd64 so far. For GOOS=windows, Hitsumabushi replaces some functions that don't work on some special Windows-like systems.

Go version: 1.19-1.21

Example

On Arm Linux, run these commands:

cd example/helloworld
./run.sh

Tips

With VC++, you might have to call _rt0_amd64_windows_lib() at the beginning of the entry point explicitly. See also golang/go#42190.

About

Run Go programs (almost) everywhere

License:Apache License 2.0


Languages

Language:C 61.0%Language:Go 38.2%Language:Shell 0.8%