xspf

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XMLContentType  = "application/xspf+xml"
	JsonContentType = "application/xspf+json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(e interface{}) error
}

type IntTag

type IntTag struct {
	Value int `xml:",chardata"`
}

func (*IntTag) MarshalJSON

func (tag *IntTag) MarshalJSON() ([]byte, error)

type SpiffEncoder

type SpiffEncoder interface {
	Header(title string)
	Encode(e interface{}) error
	Footer()
}

func NewJsonEncoder

func NewJsonEncoder(w io.Writer) SpiffEncoder

func NewXMLEncoder

func NewXMLEncoder(w io.Writer) SpiffEncoder

type StringTag

type StringTag struct {
	Value string `xml:",chardata" json:"-"`
}

func (*StringTag) MarshalJSON

func (tag *StringTag) MarshalJSON() ([]byte, error)

type TrackTag

type TrackTag struct {
	XMLName    xml.Name  `xml:"track" json:"-"`
	Creator    StringTag `xml:"creator" json:"creator"`
	Album      StringTag `xml:"album" json:"album"`
	Title      StringTag `xml:"title" json:"title"`
	TrackNum   IntTag    `xml:"trackNum" json:"trackNum"`
	Location   StringTag `xml:"location" json:"location"`
	Image      StringTag `xml:"image" json:"image"`
	Identifier StringTag `xml:"identifier" json:"identifier"`
}

Jump to

Keyboard shortcuts

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