vtt

package
v0.0.0-...-7dcd076 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(reader io.Reader) error

Validate will ensure the incoming io.Reader is a valid vtt file. If the file is not valid vtt an error will be returned.

See the VTT Spec for details about file structure: https://www.w3.org/TR/webvtt1/

Types

type ValidatorError

type ValidatorError struct {
	// contains filtered or unexported fields
}

An error object that holds a line number and component

func (*ValidatorError) Error

func (e *ValidatorError) Error() string

Jump to

Keyboard shortcuts

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