build windows package failed with a dll from golang

I got a dll from golang, only contains a simple add function.
The dll can be invoked successfully in editor 4.27, as a third_party module’s dll, but failed when packaging windows, saying “PackagingResults: Error: Cook failed. PackagingResults: Error: Unknown Cook Failure”.

I have tested a dll from vs2017, the same add function, being ok when packaging.
Maybe the golang’s dll is different from visual studio’s. At first sight, golang’s dll take up more
disk space.

Who can help me? I am confusing.

The golang’s dll and 4.27 packaging info are attached.
go_test.zip (1.2 MB)
C+Program+Files+Epic+Games+UE_4.27.zip (27.6 KB)