From 95159e5585762c06c654945070ba54262b7dcec9 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:13:16 -0700 Subject: 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 --- hotline/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/files.go') 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 { -- cgit