I am a C programmer and I know how a C program is compiled and linked into an exe file. For example, in Windows and MSVC, there is a mainCRTStartup function which is the entry point of an exe, this function resides in the C runtime library, and it prepares argc and argv, and then calls main.
For go, I have no idea how a go program is compiled and linked into an exe. What is the entry point of a go program? What does the entry or startup function do? Where do the startup codes reside? Can someone shed a light on me or point me to relevant resources? Thank you very much!