diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-06 10:16:14 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-06 10:16:14 +0300 |
| commit | 05bddac137607102f12c1c464db34a1e10707af6 (patch) | |
| tree | 4b7b74102f78e146b17c1e73370bb0bf4c42a11a /internal/audio | |
| parent | 51a8eaf8b759d6ef93c93b3e5430954959ea2aad (diff) | |
refactor: decompose Processor god object into focused files (SRP)
Extract audio coordination (voice selection, config assembly, attribution
writing) into audio_coordinator.go, card directory management into
card_store.go, and image downloading/searcher construction into
image_downloader.go. processor.go shrinks from ~1119 to ~575 lines,
each file now has a single clear responsibility. Also apply go fmt to
all touched files.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/audio')
| -rw-r--r-- | internal/audio/provider.go | 1 | ||||
| -rw-r--r-- | internal/audio/provider_test.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/internal/audio/provider.go b/internal/audio/provider.go index 60be848..e4e5888 100644 --- a/internal/audio/provider.go +++ b/internal/audio/provider.go @@ -154,4 +154,3 @@ func NewProvider(config *Config) (Provider, error) { return nil, fmt.Errorf("unknown audio provider: %s", config.Provider) } } - diff --git a/internal/audio/provider_test.go b/internal/audio/provider_test.go index 92bb94e..8cf5bfa 100644 --- a/internal/audio/provider_test.go +++ b/internal/audio/provider_test.go @@ -129,4 +129,3 @@ func TestNewProvider(t *testing.T) { }) } } - |
