Recent Posts
xgo trace: a powerful visualization tool in go
Overview Xgo has a set of tools to help go developers write unit test faster and easier.
These tools include:
Trace Mock Trap This blog introduces the Trace tool.
In case you don’t know, the xgo project is at https://github.com/xhd2015/xgo.
About the trace The trace in xgo can be used to visualize execution of a go program.
In some cases, this can replace the debugger, reducing the effort to find a bug.
read more
xgo: monkey patching in go using ‐toolexec
Overview In this blog, I will break down the implementation details in xgo.
In case you don’t know, the xgo project is at https://github.com/xhd2015/xgo.
What it does is simply adding trap in the beginning of each go function, resulting in the concept called Trap, then built on this technique, other functionalities like Mock, Patch and Trace are introduced.
What is Trap? A trap is a code snippet inserted into the beginning of a function body.
read more
Announcing My New Blogs
Today marks a new beginning of my blog life. I’ll start to publish blogs here.
read more