mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
update example code, fixed golint warning
This commit is contained in:
parent
8969268af6
commit
18116eb94b
@ -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 New Issue
Block a user