proposal: all: add bare metal support · Issue #73608 · golang/go
Proposal Details
I propose the addition of a new GOOS target, such as GOOS=none, to allow Go runtime execution under specific application defined exit functions, rather than arbitrary OS syscalls, enabling freestanding execution without direct OS support.
This is currently implemented in the GOOS=tamago project, but for reasons laid out in the Proposal Background section it is proposed for upstream inclusion.
Go applications built with GOOS=none would run on bare metal, without any underlying OS...
Read more at github.com