Thank you Axel for the pointer, very interesting project :-)
It turned out that when in Kconfig automounting of devtmpfs is configured this would not apply for the initramfs, i.e., devtmpfs is not mounted in initramfs automatically. kernel_init in init/main.c of kernel code calls kernel_init_freeable calls console_on_rootfs to setup stdio. When the /dev/console node is missing in initramfs, console_on_rootfs cannot open /dev/console and hence does not open stdio files 0, 1, 2.
It seems the go runtime exits with an error code when stdio is not open, however, I do not have exact evidence for that yet. Anyway, the go program terminates for any reason and when it does, the kernel eventually panics - init must not return.
On the other hand it can be questioned if the go runtime should exit when stdio is not open because it could easily be opened and correctly redirected in main.