sub-cli/internal/model/model.go
2025-04-23 08:01:13 +08:00

24 lines
471 B
Go

package model
// Timestamp represents a time in a subtitle file
type Timestamp struct {
Hours int
Minutes int
Seconds int
Milliseconds int
}
// Lyrics represents a lyrics file with metadata and content
type Lyrics struct {
Metadata map[string]string
Timeline []Timestamp
Content []string
}
// SRTEntry represents a single entry in an SRT file
type SRTEntry struct {
Number int
StartTime Timestamp
EndTime Timestamp
Content string
}