From 245f48f4f2942590b2eb49e1e2dc1e7f7cbcb2ab Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 15 Aug 2018 07:22:13 -0400 Subject: [PATCH] Update README.md --- README.md | 1 + README_zh.md | 1 + robotgo.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d06d81..643bceb 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ png.h: No such file or directory? Please see [issues/47](https://github.com/go-v ``` go get -u github.com/go-vgo/robotgo ``` +Note go1.10.x C file compilation cache problem. ## [Examples:](https://github.com/go-vgo/robotgo/blob/master/examples) diff --git a/README_zh.md b/README_zh.md index f266ef9..26c367f 100644 --- a/README_zh.md +++ b/README_zh.md @@ -98,6 +98,7 @@ png.h: No such file or directory? Please see [issues/47](https://github.com/go-v ``` go get -u github.com/go-vgo/robotgo ``` +注意 go1.10.x C 文件编译缓存问题 ## [Examples:](https://github.com/go-vgo/robotgo/blob/master/examples) diff --git a/robotgo.go b/robotgo.go index 88c35a6..b57e25c 100644 --- a/robotgo.go +++ b/robotgo.go @@ -1548,6 +1548,6 @@ func ActiveName(name string) error { // Kill kill the process by PID func Kill(pid int32) error { - ps := os.Process{Pid: int(pid)} + ps := os.Process{Pid: int(pid)} return ps.Kill() }