primitives

package
v0.0.0-...-2bed79d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package primitives contains playlist primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributesUnmarshal

func AttributesUnmarshal(v string) (map[string]string, error)

AttributesUnmarshal decodes attributes.

func ByteRangeMarshal

func ByteRangeMarshal(length uint64, start *uint64) string

ByteRangeMarshal encodes a byte range.

func ByteRangeUnmarshal

func ByteRangeUnmarshal(v string) (uint64, *uint64, error)

ByteRangeUnmarshal decodes a byte range.

func DurationUnmarshal

func DurationUnmarshal(val string) (time.Duration, error)

DurationUnmarshal decodes a duration.

func HeaderUnmarshal

func HeaderUnmarshal(s string) (string, error)

HeaderUnmarshal decodes a header.

func ReadLine

func ReadLine(s string) (string, string)

ReadLine reads a line from a string. It returns the line and the remaining string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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