24 lines
471 B
Go
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
|
|
}
|