Skip to content

Commit 06d73cb

Browse files
authored
Merge pull request #70 from 3ace/us-937-update-go-version
[US-937] Update supported Go version
2 parents 4a172a2 + 0c63b1f commit 06d73cb

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v2
1616
- name: Get golangci-lint
1717
run: |
18-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.61.0
18+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.64.6
1919
- name: Run golangci-lint
2020
run: |
2121
./bin/golangci-lint run --out-format=github-actions --issues-exit-code=1
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
go: ['1.22', '1.21', '1.20', '1.19', '1.18']
28+
go: ['1.24', '1.23', '1.22', '1.21', '1.20']
2929
env:
3030
CGO_ENABLED: 0
3131
steps:

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
linters:
22
enable-all: false
33
enable:
4-
- exportloopref
54
- staticcheck
6-
- megacheck
75
- govet
86
- gosimple
97
- nakedret
@@ -15,14 +13,10 @@ linters:
1513
disable:
1614
- ineffassign
1715
- errcheck
18-
- varcheck
19-
- deadcode
2016
- unused
21-
- structcheck
2217
- lll
2318
- gofmt
2419
- goconst
25-
- scopelint
2620
run:
2721
concurrency: 4
2822
timeout: 3m

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ powered by the [UniPDF](https://github.com/unidoc/unipdf) PDF library.
3737

3838
## Installation
3939

40-
Minimum required Go version: 1.18. We officially support the 3 latest minor versions of Go, but it may work on earlier ones as well.
40+
Minimum required Go version: 1.20. We officially support the 5 latest minor versions of Go, but it may work on earlier ones as well.
4141

4242
```
4343
git clone [email protected]:unidoc/unipdf-cli.git

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/unidoc/unipdf-cli
22

3+
go 1.20
4+
35
require (
46
github.com/spf13/cobra v1.9.1
57
github.com/unidoc/unipdf/v3 v3.67.0
@@ -22,13 +24,11 @@ require (
2224
github.com/unidoc/timestamp v0.0.0-20200412005513-91597fd3793a // indirect
2325
github.com/unidoc/unichart v0.3.0 // indirect
2426
github.com/unidoc/unitype v0.5.1 // indirect
25-
golang.org/x/crypto v0.32.0 // indirect
27+
golang.org/x/crypto v0.33.0 // indirect
2628
golang.org/x/image v0.24.0 // indirect
27-
golang.org/x/net v0.34.0 // indirect
29+
golang.org/x/net v0.35.0 // indirect
2830
golang.org/x/sys v0.30.0 // indirect
2931
golang.org/x/text v0.22.0 // indirect
3032
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
3133
gopkg.in/yaml.v3 v3.0.1 // indirect
3234
)
33-
34-
go 1.18

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ github.com/unidoc/unipdf/v3 v3.67.0 h1:t1ZkNX5iFhGLDPN/68MQOPAq4iXK4tTi7ePpSUBWk
5050
github.com/unidoc/unipdf/v3 v3.67.0/go.mod h1:S5BLo/oBIxAaQtB0Lw3wFqPFOY3U1oU+NISbjX9xEBA=
5151
github.com/unidoc/unitype v0.5.1 h1:UwTX15K6bktwKocWVvLoijIeu4JAVEAIeFqMOjvxqQs=
5252
github.com/unidoc/unitype v0.5.1/go.mod h1:3dxbRL+f1otNqFQIRHho8fxdg3CcUKrqS8w1SXTsqcI=
53-
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
54-
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
53+
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
54+
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
5555
golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
5656
golang.org/x/image v0.24.0 h1:AN7zRgVsbvmTfNyqIbbOraYL8mSwcKncEj8ofjgzcMQ=
5757
golang.org/x/image v0.24.0/go.mod h1:4b/ITuLfqYq1hqZcjofwctIhi7sZh2WaCjvsBNjjya8=
58-
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
59-
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
58+
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
59+
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
6060
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
6161
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
6262
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=

0 commit comments

Comments
 (0)