Xgo v1.0.16
To install xgo
v1.0.16:
# fresh install
curl -fsSL https://github.com/xhd2015/xgo/raw/master/install.sh | bash
# or upgrade
xgo upgrade
Also update xgo/runtime:
go get github.com/xhd2015/xgo/runtime@latest
Release summary:
- support mocking
time.Sleep
,ioutil.ReadAll
- add
trap.Direct
to call the original function directly, without any mock
For documentation, see https://github.com/xhd2015/xgo.