Documentation ¶
Overview ¶
Package track provides Track, an implementation of the statefulsort interface that represents a music track on an album.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Length ¶
Length parses a string representing a duration. It can be used to simplify initialization of a new track.
func NewStatefulTracks ¶
func NewStatefulTracks(tracks []*Track) statefulsort.StatefulSort
NewStatefulTracks takes a slice of track pointers as an argument and returns a statefulsort for these tracks.
func PrintTrackTable ¶
func PrintTrackTable(s statefulsort.StatefulSort, w io.Writer)
PrintTrackTable writes an HTML table containing the tracks from s to writer w.
Types ¶
type Track ¶
Track describes a music track on an album.
func GetTracks ¶
func GetTracks(s statefulsort.StatefulSort) []*Track
GetTracks returns the track pointer slice for the statefulsort supplied as the argument.
Click to show internal directories.
Click to hide internal directories.