Error running API-GOLANG app in windows 10

The Solace Go API is not supported under Windows directly. In order to use it on Windows, you could run it under WSL2 (which is what I do) or a VM.
Check out OS Support here: messaging package - solace.dev/go/messaging - Go Packages