3 ms·
I wonder if the same trick is possible in Go. For starters, you can inspect the guts of a function pointer (and dump them to a []byte, and re-execute the functi
by nemo1618 9y ago
I wonder if the same trick is possible in Go. For starters, you can inspect the guts of a function pointer (and dump them to a []byte, and re-execute the function elsewhere): https://play.golang.org/p/kpSps1GC3e https://play.golang.org/p/kpSps1GC3e
This is a bit different from constructing the function "from scratch," though. I tried to inspect the guts of the function body itself, but was met with lots of segfaults.