testbooks

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Audiobooks = []audiobooks.Audiobook{
		{
			Title:       "This Is How You Lose the Time War",
			Authors:     []string{"Amal El-Mohtar", "Max Gladstone"},
			Narrators:   []string{"Cynthia Farrell", "Emily Woo Zeller"},
			Path:        "/Amal El-Mohtar and Max Gladstone/This Is How You Lose the Time War/This Is How You Lose the Time War.m4b",
			FileSize:    145608,
			MIMEType:    "audio/mp4a-latm",
			Duration:    time.Nanosecond * 4671000064,
			ReleaseDate: &toml.LocalDate{Year: 2019, Month: 07, Day: 16},
			Genres:      []audiobooks.Genre{audiobooks.SciFi, audiobooks.LGBT},
			Tags:        []string{"Hugo Awards"},
			Description: &description.Description{
				Text: "Among the ashes of a dying world, an agent of the Commandant finds a letter. It reads: Burn before reading.\n" +
					"Thus begins an unlikely correspondence between two rival agents hellbent " +
					"on securing the best possible future for their warring factions. " +
					"Now, what began as a taunt, a battlefield boast, grows into something more. Something epic. Something romantic. " +
					"Something that could change the past and the future.\nExcept the discovery of their bond would mean death for each of them. " +
					"There's still a war going on, after all. And someone has to win that war. That's how war works. Right?",
				Format: description.Plain,
			},
		},
		{
			Title:       "A Wizard of Earthsea",
			Authors:     []string{"Ursula K. Le Guin"},
			Narrators:   []string{"Kobna Holdbrook-Smith"},
			Path:        "/Ursula K Le Guin/Earthsea/1 A Wizard of Earthsea/A Wizard of Earthsea.m4b",
			FileSize:    145565,
			MIMEType:    "audio/mp4a-latm",
			Duration:    time.Nanosecond * 4671000064,
			ReleaseDate: &toml.LocalDate{Year: 1968, Month: 11, Day: 1},
			Genres:      []audiobooks.Genre{audiobooks.Childrens, audiobooks.Fantasy},
			Description: &description.Description{
				Text: "<p>Ged, the greatest sorcerer in all Earthsea, was called Sparrowhawk in his reckless youth.</p>" +
					"<p>Hungry for power and knowledge, Sparrowhawk tampered with long-held secrets and loosed a terrible shadow upon the world. " +
					"This is the tale of his testing, how he mastered the mighty words of power, tamed an ancient dragon, " +
					"and crossed death's threshold to restore the balance.</p>",
				Format: description.HTML,
			},
			Series: &audiobooks.Series{Sequence: decimal.NewFromInt(1), Title: "Earthsea"},
		},
	}
)

Functions

func AudiobooksFilteredBy added in v1.7.2

func AudiobooksFilteredBy(filter Filter) []audiobooks.Audiobook

Types

type Filter added in v1.7.2

type Filter func(a *audiobooks.Audiobook) bool

func AuthorFilter added in v1.7.2

func AuthorFilter(name string) Filter

func GenreFilter added in v1.7.2

func GenreFilter(genre audiobooks.Genre) Filter

func NarratorFilter added in v1.12.0

func NarratorFilter(name string) Filter

func TagFilter added in v1.13.0

func TagFilter(tag string) Filter

Jump to

Keyboard shortcuts

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