把 Go 代码编译成 DLL 给别的程序调用用 cgo 的 //export 注释把 Go 函数导出,编译成 Windows 的 DLL,并在 C# 等语言里调用,附编译命令和常见报错。2021-12-23技术笔记 / GoGoDLLcgoWindows