Currently go.mod requires version 1.23.4.
The version of go available on proxmox's apt repo is 1.23. This compiles fine with when the version is truncated to 1.23.
Since you need go version 1.12+, I suggest changing line 3 of go.mod for this:
go 1.23