Skip to content

Commit

Permalink
xrootd/xrdio: ensure File implements io/fs.File
Browse files Browse the repository at this point in the history
Updates go-hep#800.

Signed-off-by: Sebastien Binet <[email protected]>
  • Loading branch information
sbinet committed Feb 26, 2021
1 parent 7024f73 commit 9cd70d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xrootd/xrdio/xrdio.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"context"
"fmt"
"io"
"io/fs"
"os"

"go-hep.org/x/hep/xrootd"
Expand All @@ -22,6 +23,7 @@ import (
// - io.ReaderAt
// - io.WriterAt
// - io.Seeker
// - io/fs.File
type File struct {
cli *xrootd.Client
fs xrdfs.FileSystem
Expand Down Expand Up @@ -177,4 +179,5 @@ var (
_ io.Writer = (*File)(nil)
_ io.WriterAt = (*File)(nil)
_ io.Seeker = (*File)(nil)
_ fs.File = (*File)(nil)
)

0 comments on commit 9cd70d7

Please sign in to comment.