xhd2015

Results 107 comments of xhd2015

we have implemented a compile-time code rewrite to support any function mock, in general it does not rely on any architecture hack, anyone interested ? we're using it to bootstrap...

> @xhd2015 Show your code. @agiledragon Hi guy I made it here: [https://github.com/xhd2015/go-mock](https://github.com/xhd2015/go-mock), the brief idea is take from [https://go.dev/blog/cover](https://go.dev/blog/cover), that we insert a Trap call in beginning of each...

> 换成amd 版本 golang 虽然好了 但是不能debug 太egg ache了 Hi guy we have made another replacement for mocking functions at here: [https://github.com/xhd2015/go-mock](https://github.com/xhd2015/go-mock), can that help you?

xgo可以支持任意架构:https://github.com/xhd2015/xgo

The reasons this is being useful: - Debug the function without any code modification - Collect the stack trace and visualize it

> I'm interested in this. Can you introduce the implementation principle and a fast poc about usage? @WAY29 Huh thanks for replying. This has been adopted inside my team. Actually,...

Design brief: 1. build/run with `--debug-server`: `xgo run --debug-server`. NOTE: `--debug-server` not available in test mode `--debug-server` options: without any extra options, listen at port 45000. can specify other options...

Xgo's principal when providing tools: no invading the source code, so it becomes completely optional, people can choose to opt in or out any any time they want. No enforcement.

gomonkey is not concurrent safe, try xgo if you need concurrent safety: https://github.com/xhd2015/xgo

Dot import : `. "github.com/agiledragon/gomonkey/v2"` Can be removed