aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-15 11:13:16 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-15 11:13:16 -0700
commit95159e5585762c06c654945070ba54262b7dcec9 (patch)
tree23609018c1460b056ce22067290ea12ee851d483 /hotline/files.go
parenta6216dd89252fa01dc176f98f1e4ecfd3f637566 (diff)
Refactoring and cleanup
* Split CLI client into separate project * Convert more functions to follow common Golang idioms e.g io.Reader, io.Writer * Use ldflags for versioning * Misc cleanup and simplification
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/files.go b/hotline/files.go
index d4bea53..0963fbf 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -131,7 +131,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro
binary.BigEndian.PutUint16(nameSize, uint16(len(strippedName)))
copy(fnwi.NameSize[:], nameSize)
- fnwi.name = []byte(strippedName)
+ fnwi.Name = []byte(strippedName)
b, err := io.ReadAll(&fnwi)
if err != nil {