fix(internal/fsx): remove pre Go 1.16 definitions (#270)
Occurred to me while working on https://github.com/ooni/probe/issues/1299.
This commit is contained in:
parent
87e5234586
commit
1da64f6d9f
4 changed files with 15 additions and 23 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/internal/fsx"
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/model"
|
||||
|
|
@ -182,7 +183,7 @@ func (il inputLoader) loadLocal() ([]model.URLInfo, error) {
|
|||
}
|
||||
|
||||
// inputLoaderOpenFn is the type of the function to open a file.
|
||||
type inputLoaderOpenFn func(filepath string) (fsx.File, error)
|
||||
type inputLoaderOpenFn func(filepath string) (fs.File, error)
|
||||
|
||||
// readfile reads inputs from the specified file. The open argument should be
|
||||
// compatibile with stdlib's fs.Open and helps us with unit testing.
|
||||
|
|
|
|||
Loading…
Reference in a new issue