Build script returned non-zero exit code: 2 without logs

Hi! I try to deploy my Go microservice like this tutorial (How to Use Netlify to Deploy a Free Go Web Application · The Ethically-Trained Programmer). but I have error in build step.
I don’t understand, where reason of this error? Or where can I see logs of “go build” command?

4:00:56 PM: Netlify Build                                                 
4:00:56 PM: ────────────────────────────────────────────────────────────────
4:00:56 PM: ​
4:00:56 PM: ❯ Version
4:00:56 PM:   @netlify/build 29.11.5
4:00:56 PM: ​
4:00:56 PM: ❯ Flags
4:00:56 PM:   baseRelDir: true
4:00:56 PM:   buildId: 646f5bf8d5160600088db907
4:00:56 PM:   deployId: 646f5bf8d5160600088db909
4:00:56 PM: ​
4:00:56 PM: ❯ Current directory
4:00:56 PM:   /opt/build/repo
4:00:56 PM: ​
4:00:56 PM: ❯ Config file
4:00:56 PM:   /opt/build/repo/netlify.toml
4:00:56 PM: ​
4:00:56 PM: ❯ Context
4:00:56 PM:   production
4:00:56 PM: ​
4:00:56 PM: Build command from Netlify app                                
4:00:56 PM: ────────────────────────────────────────────────────────────────
4:00:56 PM: ​
4:00:56 PM: $ go build cmd/invest/main.go
4:00:57 PM: ​
4:00:57 PM: (build.command completed in 1.7s)
4:00:57 PM: ​
4:00:59 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:00:58 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:00:58 PM: Failing build: Failed to build site
4:00:59 PM: Finished processing build request in 14.312s

What version of GO are you using?

I use golang 1.19 version

Before we move towards getting to a solution, can we know what is it that you’re trying? go build is usually used to build Go apps and Netlify doesn’t run/host Go apps (at least not without Netlify Functions). So, I don’t think whatever you’re trying is supported (even if we get it to work that is).