aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-08 20:36:04 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-09 14:05:15 -0700
commitb129b7cbc9fd9a9c11a77e5922861ef08893efa1 (patch)
tree1e3687d1c96fb54bcac1d9c13cdac4297976a758 /hotline/files.go
parent9c44621ee1ca9abfca79c593e80193afd9204c83 (diff)
Convert bespoke methods to io.Reader/io.Writer interfaces
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hotline/files.go b/hotline/files.go
index dcabf9d..d4bea53 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -3,6 +3,7 @@ package hotline
import (
"encoding/binary"
"errors"
+ "io"
"io/fs"
"os"
"path/filepath"
@@ -132,7 +133,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro
fnwi.name = []byte(strippedName)
- b, err := fnwi.MarshalBinary()
+ b, err := io.ReadAll(&fnwi)
if err != nil {
return nil, err
}