util

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StyleError   = promptui.Styler(promptui.FGRed)
	StyleWarning = promptui.Styler(promptui.FGYellow)
	StyleSuccess = promptui.Styler(promptui.FGGreen)
)

Functions

func InitOwnership

func InitOwnership(ownership string) (err error)

func RemoveDiacritics

func RemoveDiacritics(s string) (string, error)

Removes all diacritics from given string

func ToEpisodeName

func ToEpisodeName(title string, season int, episode int, extension string) string

Returns formatted TV show episode name from given parameters

func ToLanguageDisplayName

func ToLanguageDisplayName(lang string, forced bool) string

Returns language display flag from given language code.

func ToLanguageFlag

func ToLanguageFlag(lang string) string

Returns language display flag from given language code.

func ToMovieName

func ToMovieName(title string, year int, extension string) string

Returns formatted movie name from given parameters

func ToSeasonName

func ToSeasonName(season int) string

Returns formatted season name from given parameter

Types

type Result

type Result struct {
	Characteristics map[string]string
	IsSuccessful    bool
	Message         string
}

type SortAlphabetic

type SortAlphabetic []string

func (SortAlphabetic) Len

func (list SortAlphabetic) Len() int

func (SortAlphabetic) Less

func (list SortAlphabetic) Less(i, j int) bool

func (SortAlphabetic) Swap

func (list SortAlphabetic) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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