mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 09:48:59 +00:00
update example code, fixed golint warning
This commit is contained in:
parent
8969268af6
commit
18116eb94b
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"log"
|
||||
|
||||
"image/jpeg"
|
||||
_ "image/jpeg"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/go-vgo/robotgo"
|
||||
|
|
@ -24,7 +23,7 @@ func main() {
|
|||
}
|
||||
|
||||
b := new(bytes.Buffer)
|
||||
err = jpeg.Encode(b, img, &jpeg.Options{20})
|
||||
err = jpeg.Encode(b, img, &jpeg.Options{Quality: 20})
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue