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 PrintTracks ¶
func PrintTracks(s statefulsort.StatefulSort)
PrintTracks prints the tracks as they are currently sorted as a table.
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.