Skip to content

Commit 29e1586

Browse files
committed
Update minimum Go version to 1.20
1 parent 48a4b48 commit 29e1586

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
build:
55
strategy:
66
matrix:
7-
go-version: ['1.15.15', '1.20.0']
7+
go-version: ['1.20.0']
88
os: [ubuntu-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/tech10/nvdaRemoteServer
22

3-
go 1.15
3+
go 1.20
44

55
require github.com/tech10/panichandler v1.6.7

server/file.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package server
22

33
import (
44
"errors"
5-
"io/ioutil"
65
"os"
76
"path/filepath"
87
"strings"
@@ -89,5 +88,5 @@ func cdir(dir string) error {
8988

9089
func file_read(file string) ([]byte, error) {
9190
file = fullPath(file)
92-
return ioutil.ReadFile(file)
91+
return os.ReadFile(file)
9392
}

server/genKey.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ package server
33
import (
44
"math/rand"
55
"strconv"
6-
"time"
76
)
87

98
func gen_key() string {
109
min := 1000000
1110
max := 10000000
1211
var key string
1312
var c *ClientChannel
14-
rand.Seed(time.Now().UnixNano())
1513
for i := 0; i < 20; i++ {
1614
key = strconv.Itoa(rand.Intn(max-min) + min)
1715
c = FindChannel(key)

0 commit comments

Comments
 (0)