Skip to content

Commit

Permalink
update minimal go version to 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
john-behm-bertelsmann committed Jan 24, 2023
1 parent cf34ddf commit 07d77a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13, 1.14, 1.15, 1.16, 1.17, 1.18]
go-version: [1.16, 1.17, 1.18, 1.19]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jxsl13/backupfs

go 1.13
go 1.16

require (
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions internal/test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package internal

import (
"io/ioutil"
"io"
"os"
"path/filepath"
"sort"
Expand Down Expand Up @@ -35,7 +35,7 @@ func FileMustContainText(t *testing.T, fs afero.Fs, path, content string) {
f, err := fs.Open(path)
require.NoError(err)
defer f.Close()
b, err := ioutil.ReadAll(f)
b, err := io.ReadAll(f)
require.NoError(err)

require.Equal(string(b), content)
Expand Down

0 comments on commit 07d77a3

Please sign in to comment.