From 6bbf8390df303354049ccf62d248583bf8ac14d7 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 8 Dec 2021 17:49:26 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 9 +++++++++ README_zh.md | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 5c0b9b5..2929e63 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,15 @@ sudo dnf install xsel xclip ``` ## Installation: + +With Go module support (Go 1.11+), just import: + +```go +import "github.com/go-vgo/robotgo" +``` + +Otherwise, to install the robotgo package, run the command: + ``` go get github.com/go-vgo/robotgo ``` diff --git a/README_zh.md b/README_zh.md index 9bc5454..37fc345 100644 --- a/README_zh.md +++ b/README_zh.md @@ -106,6 +106,14 @@ sudo dnf install xsel xclip ``` ## Installation: +With Go module support (Go 1.11+), just import: + +```go +import "github.com/go-vgo/robotgo" +``` + +Otherwise, to install the robotgo package, run the command: + ``` go get github.com/go-vgo/robotgo ``` From 14aa4712b4a2f4ef93bc94587561b2c0c5c10c55 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 8 Dec 2021 17:56:08 -0400 Subject: [PATCH 2/2] Update godoc --- robotgo.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/robotgo.go b/robotgo.go index 01ecc1c..75c0d3a 100644 --- a/robotgo.go +++ b/robotgo.go @@ -18,6 +18,12 @@ See Requirements: https://github.com/go-vgo/robotgo#requirements Installation: +With Go module support (Go 1.11+), just import: +```go + import "github.com/go-vgo/robotgo" +``` + +Otherwise, to install the robotgo package, run the command: go get -u github.com/go-vgo/robotgo */ package robotgo @@ -641,7 +647,8 @@ func MovesClick(x, y int, args ...interface{}) { Click(args...) } -// Toggle toggle the mouse, support button: "left", "center", "right", +// Toggle toggle the mouse, support button: +// "left", "center", "right", // "wheelDown", "wheelUp", "wheelLeft", "wheelRight" // // Examples: