feat: git init

This commit is contained in:
2026-01-17 19:18:58 -06:00
commit b73d5b8078
18 changed files with 1274 additions and 0 deletions

19
pkg/output/json.go Normal file
View File

@@ -0,0 +1,19 @@
package output
import (
"encoding/json"
"transcribe/internal/whisper"
)
// JSONFormatter formats transcription results as JSON
type JSONFormatter struct{}
// Format converts transcription result to JSON format
func (f *JSONFormatter) Format(result *whisper.TranscriptionResult) (string, error) {
data, err := json.MarshalIndent(result, "", " ")
if err != nil {
return "", err
}
return string(data), nil
}