Documentation
¶
Index ¶
- func IsPlainText(mtype string) error
- func ParseDuration(d string) time.Duration
- func ParseNumber[N Number](num N, dig int) string
- func ParseStamp(t string) time.Duration
- func ParseStampDuration[N Number](t, b N) time.Duration
- func ParseTimeAndBase(t, b string) time.Duration
- func StringToFloat(t string) float64
- type Chapter
- type ChapterMeta
- type Media
- type Meta
- type Metaz
- type Number
- type Stream
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPlainText ¶
func ParseDuration ¶
func ParseNumber ¶
func ParseStamp ¶
func ParseStampDuration ¶
func ParseTimeAndBase ¶
func StringToFloat ¶
Types ¶
type Chapter ¶
type Chapter struct {
StartTime Time
EndTime Time
StartStamp dur.Timestamp
EndStamp dur.Timestamp
ChapTitle string
Tags map[string]string
}
func NewChapter ¶
func NewChapter(chap ChapterMeta) *Chapter
func NewChapters ¶
func NewChapters(chaps []ChapterMeta) []*Chapter
type ChapterMeta ¶
type Media ¶
type Media struct {
fidi.File
Filename string
Tagz map[string]string
Chaps []*Chapter
Streamz []Stream
Input fidi.File
Output fidi.File
Ini fidi.File
Cue fidi.File
Cover fidi.File
HasCover bool
// contains filtered or unexported fields
}
func (*Media) SetChapters ¶
type Number ¶
type Number interface {
constraints.Integer | constraints.Float
}
type Time ¶
func ParseString ¶
Click to show internal directories.
Click to hide internal directories.