Decompiling a compiled program with Go

Issue

I have built a simple executable program with Go.

I’ve compiled the code into a static binary program.

I want to decompile the output binary file and get the Go source code.

Is this possible or not?

Solution

There is no tool to do that and as Go programs are compiled into machine code, they do not contain enough information to translate them back into Go code. Standard disassembly techniques are still possible though.

Answered By – fuz

Answer Checked By – Gilberto Lyons (GoLangFix Admin)

Leave a Reply

Your email address will not be published.