在不调试信息的情况下构建Go二进制文件

Is it possible to build go binary so that it doesn't show stack-trace on panic and doesn't contain any source code paths etc?

I'm currently using ld-flags "-w" and "-s" but resulting binary still contains some unneeded paths and shows unneeded stack trace on panic.

There is a issue about this thing (https://code.google.com/p/go/issues/detail?id=3467) but it is old and hasn't been updated for a while (and I don't have slightest idea what "patching runtime" in one of issues comments means).

No, there isn't any way to do this right now.

The comment about patching the runtime means that is currently the only way to disable that output. The runtime is what prints the stack traces on panic, and the segfault addresses; and you'd have to write a patch to disable that behavior.