This is pretty wild. I hadn't realized that there were easy ways to work with EFI in higher-level languages than C.
Other languages:
Rust: https://medium.com/@gil0mendes/an-efi-app-a-bit-rusty-82c36b...
Wasn't able to find an example for Go, but seems likely it's out there.