track

package
v0.0.0-...-1459e82 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracks = []*Track{
	{"Go Ahead", "Alicia Keys", "As I Am", 2007, length("4m36s")},
	{"Go", "Delilah", "From the Roots Up", 2012, length("3m38s")},
	{"Go", "Moby", "Moby", 1992, length("3m37s")},
	{"Ready 2 Go", "Martin Solveig", "Smash", 2011, length("4m24s")},
}

Functions

func ByColumns

func ByColumns(t []*Track) *byColumns

func PrintTracks

func PrintTracks(tracks []*Track)

Types

type ByArtist

type ByArtist []*Track

func (ByArtist) Len

func (x ByArtist) Len() int

func (ByArtist) Less

func (x ByArtist) Less(i, j int) bool

func (ByArtist) Swap

func (x ByArtist) Swap(i, j int)

type ByYear

type ByYear []*Track

func (ByYear) Len

func (x ByYear) Len() int

func (ByYear) Less

func (x ByYear) Less(i, j int) bool

func (ByYear) Swap

func (x ByYear) Swap(i, j int)

type Track

type Track struct {
	Title  string
	Artist string
	Album  string
	Year   int
	Length time.Duration
}

Jump to

Keyboard shortcuts

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