From e61b3160bc8936b7ffb0af5c89b13742a7081826 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sun, 6 Jul 2025 16:02:53 -0700 Subject: Add ForkType type alias for improved type safety - Replace [4]byte with ForkType in ForkInfoList struct - Update constants ForkTypeDATA and ForkTypeMACR to use ForkType - Add String() method to ForkType for better debugging - Improve consistency with existing type patterns (FieldType, TranType) - Clean up unused code and improve documentation --- hotline/file_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/file_wrapper.go') diff --git a/hotline/file_wrapper.go b/hotline/file_wrapper.go index b13e0dc..b6aff94 100644 --- a/hotline/file_wrapper.go +++ b/hotline/file_wrapper.go @@ -85,7 +85,7 @@ func (f *fileWrapper) rsrcForkSize() (s [4]byte) { func (f *fileWrapper) rsrcForkHeader() FlatFileForkHeader { return FlatFileForkHeader{ - ForkType: [4]byte{0x4D, 0x41, 0x43, 0x52}, // "MACR" + ForkType: ForkTypeMACR, DataSize: f.rsrcForkSize(), } } -- cgit