File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11module github.com/tech10/nvdaRemoteServer
22
3- go 1.15
3+ go 1.20
44
55require github.com/tech10/panichandler v1.6.7
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package server
22
33import (
44 "errors"
5- "io/ioutil"
65 "os"
76 "path/filepath"
87 "strings"
@@ -89,5 +88,5 @@ func cdir(dir string) error {
8988
9089func file_read (file string ) ([]byte , error ) {
9190 file = fullPath (file )
92- return ioutil .ReadFile (file )
91+ return os .ReadFile (file )
9392}
Original file line number Diff line number Diff line change @@ -3,15 +3,13 @@ package server
33import (
44 "math/rand"
55 "strconv"
6- "time"
76)
87
98func 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 )
You can’t perform that action at this time.
0 commit comments