Documentation
¶
Index ¶
- Variables
- func BuildEntryChoiceString(e *api.AnimeThemeEntry) string
- func BuildThemeString(t *api.AnimeTheme) string
- func BuildVideoChoiceString(v *api.Video) string
- func HasNextPage(links *api.Links) bool
- func SimpleSelection(title string, items []string) int
- type CurrentSeason
- type Flags
- type Interface
- type Real
Constants ¶
This section is empty.
Variables ¶
var Seasons = []string{"Winter", "Spring", "Summer", "Fall"}
Functions ¶
func BuildEntryChoiceString ¶
func BuildEntryChoiceString(e *api.AnimeThemeEntry) string
BuildEntryChoiceString builds a string to be shown to user in selection displaying all information about an entry
func BuildThemeString ¶
func BuildThemeString(t *api.AnimeTheme) string
BuildThemeString builds a string displaying information about a theme e.g. OP1 sister's noise [1-16] 1080p BD Creditless
It also displays additional information about entry and video (e.g. resolution, episodes) if there's only one of them.
func BuildVideoChoiceString ¶
BuildVideoChoiceString builds a string to be shown to user in selection displaying all information about a video
func HasNextPage ¶
func SimpleSelection ¶
SimpleSelection shows a choice of items and returns the index of the selected item
Types ¶
type CurrentSeason ¶
type Interface ¶
type Interface struct { Player player Flags Flags CurrentSeason CurrentSeason Exit func() }
I don't know how to call it, so I'll call it Interface (as an Interface to interact with utils)
func NewInterface ¶
NewInterface creates a new working Interface to use utils
func (Interface) AskEntries ¶
func (a Interface) AskEntries(entries []api.AnimeThemeEntry)
func (Interface) FetchCurrentPage ¶
func (a Interface) FetchCurrentPage() *api.AnimeSearch
FetchPage returns results from current page