From 2381c8712ebafa8060f0d2feacadd85bef280eb0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 4 Jul 2026 22:14:16 +0300 Subject: - Delete internal/file/content.go (duplicate implementation with different semantics). - Refactor internal/file/file.go to use a File struct with options (WithContent, WithSource, WithMode, etc.). - Update Have signature to accept variadic options instead of (path, param). - Update tests to use new API. - Update TODO.md to remove resolved blocker and reflect remaining features. --- assets/testfiles/test.tmpl | 2 ++ assets/testfiles/test.txt | 1 + 2 files changed, 3 insertions(+) create mode 100644 assets/testfiles/test.tmpl create mode 100644 assets/testfiles/test.txt (limited to 'assets/testfiles') diff --git a/assets/testfiles/test.tmpl b/assets/testfiles/test.tmpl new file mode 100644 index 0000000..073e946 --- /dev/null +++ b/assets/testfiles/test.tmpl @@ -0,0 +1,2 @@ +Hello, {{.Param}}! +Welcome to {{.USER}}. diff --git a/assets/testfiles/test.txt b/assets/testfiles/test.txt new file mode 100644 index 0000000..88d12a3 --- /dev/null +++ b/assets/testfiles/test.txt @@ -0,0 +1 @@ +Simple source content. -- cgit v1.2.3