D:\gotest> go build -ldflags="-H windowsgui -linkmode internal" -o webview-example.exe
# github.com/go-vgo/robotgo
In file included from ./bitmap/../base/str_io_c.h:2,
from ./bitmap/goBitmap.h:17,
from E:\code\src\github.com\go-vgo\robotgo\robotgo.go:45:
./bitmap/../base/zlib_util_c.h:2:10: fatal error: zlib.h: No such file or directory
2 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.
安装mingw64,设置环境变量即可。