Expanding on the Marc's answer, Go toolchains after v1.17 uses register-based calling convention(ABI).
With this in mind, you need to compile your binaries using the following command to disable compiler optimizations and inlining to be able to see the the arguments in stack trace:
go build -gcflags=all="-N -l"