template

package
v0.16.19 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPlaylistTag

type CustomPlaylistTag struct {
	Number int
}

CustomPlaylistTag implements both CustomTag and CustomDecoder interfaces.

func (*CustomPlaylistTag) Decode

func (tag *CustomPlaylistTag) Decode(line string) (m3u8.CustomTag, error)

Decode decodes the input line. The line will be the entire matched line, including the identifier

func (*CustomPlaylistTag) Encode

func (tag *CustomPlaylistTag) Encode() *bytes.Buffer

Encode formats the structure to the text result.

func (*CustomPlaylistTag) SegmentTag

func (tag *CustomPlaylistTag) SegmentTag() bool

SegmentTag is a playlist tag example.

func (*CustomPlaylistTag) String

func (tag *CustomPlaylistTag) String() string

String implements Stringer interface.

func (*CustomPlaylistTag) TagName

func (tag *CustomPlaylistTag) TagName() string

TagName should return the full indentifier including the leading '#' and trailing ':' if the tag also contains a value or attribute list.

type CustomSegmentTag

type CustomSegmentTag struct {
	Name string
	Jedi bool
}

CustomSegmentTag implements both CustomTag and CustomDecoder interfaces.

func (*CustomSegmentTag) Decode

func (tag *CustomSegmentTag) Decode(line string) (m3u8.CustomTag, error)

Decode decodes the input string to the internal structure. The line will be the entire matched line, including the identifier.

func (*CustomSegmentTag) Encode

func (tag *CustomSegmentTag) Encode() *bytes.Buffer

Encode encodes the structure to the text result.

func (*CustomSegmentTag) SegmentTag

func (tag *CustomSegmentTag) SegmentTag() bool

SegmentTag is a playlist tag example.

func (*CustomSegmentTag) String

func (tag *CustomSegmentTag) String() string

String implements Stringer interface.

func (*CustomSegmentTag) TagName

func (tag *CustomSegmentTag) TagName() string

TagName should return the full indentifier including the leading '#' and trailing ':' if the tag also contains a value or attribute list

Jump to

Keyboard shortcuts

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