From 1223dc619d8076d507f3bd4e2acf923b772729b4 Mon Sep 17 00:00:00 2001 From: xhd2015 Date: Thu, 4 Apr 2024 15:47:23 +0800 Subject: [PATCH] add blog in README.md --- README.md | 2 +- README_zh_cn.md | 2 +- cmd/xgo/version.go | 4 ++-- runtime/core/version.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0ac79e8f..ba774cb4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Enable function Trap for `go`, and provide tools like Mock and Trace to help go developers write unit test and debug both easier and faster. -`xgo` works as a preprocessor for `go run`,`go build`, and `go test`. +`xgo` works as a preprocessor for `go run`,`go build`, and `go test`(see our [blog](https://blog.xhd2015.xyz/posts/xgo-monkey-patching-in-go-using-toolexec/)). It **preprocess** the source code and IR(Intermediate Representation) before invoking `go`, adding missing abilities to go program by cooperating with(or hacking) the go compiler. diff --git a/README_zh_cn.md b/README_zh_cn.md index 611294ea..181dbf72 100644 --- a/README_zh_cn.md +++ b/README_zh_cn.md @@ -9,7 +9,7 @@ 允许对`go`的函数进行拦截, 并提供Mock和Trace等工具帮助开发者编写测试和快速调试。 -`xgo`作为一个预处理器工作在`go run`,`go build`,和`go test`之上。 +`xgo`作为一个预处理器工作在`go run`,`go build`,和`go test`之上(查看[blog](https://blog.xhd2015.xyz/posts/xgo-monkey-patching-in-go-using-toolexec/))。 `xgo`对源代码和IR(中间码)进行预处理之后, 再调用`go`进行后续的编译工作。通过这种方式, `xgo`实现了一些在`go`中缺乏的能力。 diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index 0ea487b4..2ba9bbf4 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -3,8 +3,8 @@ package main import "fmt" const VERSION = "1.0.18" -const REVISION = "e0fff32b787ec10d8c27b655f546a8a43e090b61+1" -const NUMBER = 158 +const REVISION = "d590df444a20fcbe9a1a666bec64856b3211e72f+1" +const NUMBER = 159 func getRevision() string { return fmt.Sprintf("%s %s BUILD_%d", VERSION, REVISION, NUMBER) diff --git a/runtime/core/version.go b/runtime/core/version.go index 090cfe92..97785387 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.18" -const REVISION = "e0fff32b787ec10d8c27b655f546a8a43e090b61+1" -const NUMBER = 158 +const REVISION = "d590df444a20fcbe9a1a666bec64856b3211e72f+1" +const NUMBER = 159 // these fields will be filled by compiler const XGO_VERSION = ""