srt

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StateKnown    state = 0
	StateSequence state = 1
	StateTime     state = 2
	StateSubtitle state = 3
	StateEnd      state = 4
)

Functions

func WriteSrt

func WriteSrt(filePath string, src []*Srt) (err error)

Types

type Srt

type Srt struct {
	Sequence int
	Start    string
	End      string
	Subtitle string
}

func Open

func Open(filePath string) (rets []*Srt, err error)

type SrtSort

type SrtSort []*Srt

func (SrtSort) Len

func (s SrtSort) Len() int

func (SrtSort) Less

func (s SrtSort) Less(i, j int) bool

func (SrtSort) Swap

func (s SrtSort) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL