Merge pull request #322 from go-vgo/bitmap-pr

update examples code
This commit is contained in:
vz 2021-03-19 13:38:07 -03:00 committed by GitHub
commit fa8bd3612f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# FROM golang:1.10.1 # FROM golang:1.10.1
FROM golang:1.15.8-stretch AS build FROM golang:1.16.2-stretch AS build
# FROM govgo/go:1.11.1 # FROM govgo/go:1.11.1
RUN apt update && apt install -y --no-install-recommends \ RUN apt update && apt install -y --no-install-recommends \

View File

@ -10,10 +10,10 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Set up Go 1.15 - name: Set up Go 1.16
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.15 go-version: 1.16
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View File

@ -13,7 +13,8 @@ go:
# - 1.12.x # - 1.12.x
# - 1.13.x # - 1.13.x
# - 1.14.x # - 1.14.x
- 1.15.x # - 1.15.x
- 1.16.x
# - tip # - tip
addons: addons:

View File

@ -34,7 +34,7 @@ environment:
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH% PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
# - COMPILER: MINGW_W64 # - COMPILER: MINGW_W64
# ARCHITECTURE: x64 # ARCHITECTURE: x64
GOVERSION: 1.15.8 GOVERSION: 1.16.2
# GOPATH: c:\gopath # GOPATH: c:\gopath
# scripts that run after cloning repository # scripts that run after cloning repository

View File

@ -16,7 +16,10 @@ func colorPicker() {
fmt.Println("color: #", clo) fmt.Println("color: #", clo)
// clipboard // clipboard
robotgo.WriteAll("#" + clo) err := robotgo.WriteAll("#" + clo)
if err != nil {
fmt.Println("err: ", err)
}
} }
} }

View File

@ -99,7 +99,7 @@ func cilp() {
if err != nil { if err != nil {
fmt.Println("robotgo.ReadAll err is: ", err) fmt.Println("robotgo.ReadAll err is: ", err)
} }
fmt.Println(text) fmt.Println("text: ", text)
} }
func key() { func key() {

View File

@ -70,7 +70,7 @@ import (
const ( const (
// Version get the robotgo version // Version get the robotgo version
Version = "v0.91.0.1089, MT. Rainier!" Version = "v0.93.1.1189, MT. Rainier!"
) )
// GetVersion get the robotgo version // GetVersion get the robotgo version