music

package
v0.0.0-...-5948a14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintTracks

func PrintTracks(tracks []*Track)

PrintTracks prints the given track slice to an output

Types

type Track

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

Track represents a music track

func NewTrack

func NewTrack(title, artist, album string, year int, t string) *Track

NewTrack creates and returns a pointer to a Track type

Jump to

Keyboard shortcuts

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