meta

package
v0.0.0-...-b45f6f5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlbumTag       Tag = "album"
	DateTag            = "date"
	AlbumArtistTag     = "album artist"
	ArtistTag          = "artist"
	TitleTag           = "title"
	TrackNumberTag     = "track number"
)

Variables

This section is empty.

Functions

func AlbumEq

func AlbumEq(a, b Album) bool

func AlbumString

func AlbumString(a Album) string

func TrackEq

func TrackEq(a, b Track) bool

func TrackNumberPadder

func TrackNumberPadder(trackCount uint16) func(uint16) string

func TrackString

func TrackString(t Track) string

Types

type Album

type Album interface {
	AlbumTitle() string
	Date() string
	AlbumArtist() string
}

type AlbumTags

type AlbumTags struct {
	AlbumTag       string
	AlbumArtistTag string
	DateTag        string
}

func (*AlbumTags) AlbumArtist

func (t *AlbumTags) AlbumArtist() string

func (*AlbumTags) AlbumTitle

func (t *AlbumTags) AlbumTitle() string

func (*AlbumTags) Date

func (t *AlbumTags) Date() string

type Tag

type Tag string

type Track

type Track interface {
	AlbumTitle() string
	Date() string
	AlbumArtist() string
	Artist() string
	Title() string
	TrackNumber() uint16
}

type TrackTags

type TrackTags struct {
	Album
	TrackNumberTag uint16
	ArtistTag      string
	TitleTag       string
}

func (*TrackTags) Artist

func (t *TrackTags) Artist() string

func (*TrackTags) Title

func (t *TrackTags) Title() string

func (*TrackTags) TrackNumber

func (t *TrackTags) TrackNumber() uint16

Jump to

Keyboard shortcuts

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