> I don’t think the Git maintainers will consider adding Go as a dependency
Just re-write in C
This "just" carries a lot of weight.
And that's probably not enough: for example likely you'd need to reuse whatever Git uses to generates patch formats. It's not necessarily _hard_, but it's not "just" a language translation.
Maybe someone will create modernperl, à la modernc, to automatically port go to perl.