That they already have in the form of Go generate, although it brings me memories from MS-DOS Borland C++ before they implemented templates and used preprocessor macros.
In any case, I agree with you, but given the Go's culture I guess that is the closer we will ever get to compile time code generation.