day360

package
v0.0.0-...-d40efbb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrPlaylistNotPossible

func ErrPlaylistNotPossible() error

ErrPlaylistNotPossible is the error returned if a playlist is not possible respecting the ranks.

Types

type Playlist

type Playlist []Song

Playlist is a ranked priority list of songs.

type Song

type Song int

Song represents a particular song.

func InterleaveSongsByRank

func InterleaveSongsByRank(ranks []Playlist) ([]Song, error)

InterleaveSongsByRank uses a topological sort to return a satisfactory playlist or an error if not possible.

Jump to

Keyboard shortcuts

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