4 ms·
Is it possible to fully embed the "go sdk" into your own golang program? The motivation is shipping my single binary program which would include go itself. The
by moondev 3y ago
Is it possible to fully embed the "go sdk" into your own golang program?
The motivation is shipping my single binary program which would include go itself. Then the program could proxy the "go" command to build and run code without needing "golang" installed or downloaded if airgapped.
- Philip-J-Fry 3y agoYou can embed data into the application. So in theory you could embed a whole Go root directory, extract it to disk and then just run the executables.