language

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxtPlexSummaryLabel          string = "Summary" // TODO: Change to Summary
	TxtPlexContainerLabel        string = "Container"
	TxtPlexResolutionLabel       string = "Resolution"
	TxtPlexCodecLabel            string = "Codec"
	TxtPlexAspectRatioLabel      string = "Aspect Ratio"
	TxtPlexFrameRateLabel        string = "Frame Rate"
	TxtPlexDurationLabel         string = "Duration"
	TxtPlexReleasedLabel         string = "Released"
	TxtPlexDirectorLabel         string = "Director"
	TxtPlexWriterLabel           string = "Writer"
	TxtPlexMediaLabel            string = "Media"
	TxtPlexContentRatingLabel    string = "Content Rating"
	TxtPlexTitle                 string = "PMS"
	TxtYouSelected               string = "you selected: "
	TxtYear                      string = "Year"
	TxtPlexSeasons               string = "Seasons - "
	TxtPlexShow                  string = "Show"
	TxtPlexSeason                string = "Season"
	TxtPlexEpisode               string = "Episode"
	SymDelimiter                 string = " - "
	TxtDone                      string = "DONE"
	TxtStarting                  string = "Starting..."
	TxtStartingTerminal          string = "Starting Terminal..."
	TxtSelfTesting               string = "Self Testing..."
	TxtCurrentDate               string = "Current Date: "
	TxtCurrentTime               string = "Current Time: "
	TxtPleaseWait                string = "Please Wait..."
	TxtBaudRate                  string = "Baud Rate Set to %v kbps"
	TxtConnecting                string = "Connecting..."
	TxtDialing                   string = "Dialing... %v:%v"
	TxtConnected                 string = "Connected."
	ErrorMessageConnectionFailed string = "Connection failed. Retrying..."
	TxtComplete                  string = "Complete"
	SymNewline                   string = "\n"
	SymCarridgeReturn            string = "\r"
	SymTab                       string = "\t"
	SymDoubleQuote               string = "\""
	SymSingleQuote               string = "'"
	SymOpenBracket               string = "("
	SymCloseBracket              string = ")"
)
View Source
const (
	TxtMainMenuTitle                string = "Main Menu"
	TxtSkyNewsMenuTitle             string = "SKY News"
	TxtBBCNewsMenuTitle             string = "BBC News"
	TxtWeatherMenuTitle             string = "Weather"
	TxtRemoteSystemsAccessMenuTitle string = "Remote Systems Access"
	TxtSystemsMaintenanceMenuTitle  string = "Systems Maintenance"
	TxtPlexMediaServersMenuTitle    string = "Plex Media Server"
	TxtQuittingMessage              string = "Quitting"
	TxtThankYouForUsing             string = "Thank you for using"
	TxtSubMenuTitle                 string = "Sub Menu"
	SymBlank                        string = "-"
	TxtTorrentsMenuTitle            string = "Torrents"
)
View Source
const (
	TxtMenuTitle          string = "SKY News"
	TxtTopicHome          string = "Home"
	TxtTopicUK            string = "UK"
	TxtTopicWorld         string = "World"
	TxtTopicUS            string = "US"
	TxtTopicBusiness      string = "Business"
	TxtTopicPolitics      string = "Politics"
	TxtTopicTechnology    string = "Technology"
	TxtTopicEntertainment string = "Entertainment"
	TxtTopicStrange       string = "Strange News"
	TxtLoadingTopic       string = "Loading news for topic: "
	TxtLoadingStory       string = "Loading news for story..."
	HTMLTagTitle          string = "title"
	HTMLTagTagP           string = "p"
)

SkyNews

View Source
const (
	TxtTransmission                string = "Transmission"
	TxtQTorrent                    string = "qTorrent"
	TxtLoadingTorrentsTransmission string = "Loading Transmission Torrents..."
	TxtLoadingTorrentsQTor         string = "Loading qTorrent Torrents..."
)

Torrents

View Source
const (
	TxtWeatherTitle       string = "Weather"
	TxtWeatherPrompt      string = "Select (Q)uit"
	SymWeatherFormat2     string = "%-25s | %-15v"
	SymWeatherFormat4     string = "%-25s | %-15v  %-15s : %-15v"
	SymWeatherFormat1     string = "%-25s | %v%%"
	TxtLocationLabel      string = "Location"
	TxtConditionsLabel    string = "Conditions"
	TxtTemperatureLabel   string = "Temperature"
	TxtFeelsLikeLabel     string = "Feels Like"
	TxtMinLabel           string = "Min"
	TxtMaxLabel           string = "Max"
	TxtWindSpeedLabel     string = "Wind Speed"
	TxtWindDirectionLabel string = "Wind Direction"
	TxtCloudCoverLabel    string = "Cloud Cover"
	TxtRainLabel          string = "Rain"
	TxtSnowLabel          string = "Snow"
	TxtSunriseLabel       string = "Sunrise"
	TxtSunsetLabel        string = "Sunset"
	TxtSourceLabel        string = "Source"
	TxtSourceService      string = "OpenWeatherMap"
	SymDegree             string = "°"
	SymBreak              string = " ━━ "
	TxtOneHour            string = " (1hr)"
	TxtThreeHour          string = " (3hr)"
	Space                 string = " "
)

Weather

View Source
const (
	SymActionQuit    string = "Q"
	SymActionForward string = "F"
	SymActionBack    string = "B"
	SymActionExit    string = "EX"
	SymTruncate      string = "..."
	SymWildcardBlank string = "{{blank}}"
)
View Source
const (
	TxtOneWord      string = "one"
	TxtOneNumeric   string = "1"
	TxtMinutes      string = "minutes"
	TxtMinutesShort string = "mins"
	TxtHour         string = "hour"
	TxtHourShort    string = "hr"
)
View Source
const (
	TxtMillisecondsShort  string = "ms"
	TxtApplicationVersion string = "StarTerm - Utilities 1.0 %s"
	TxtApplicationName    string = "StarTerm"
	SymPromptSymbol       string = "? "
	TxtError              string = "ERROR : "
	TxtInfo               string = "INFO : "
	TxtPaging             string = "Page %v of %v"
)
View Source
const (
	BoxCharacterNormal      string = "┃"
	BoxCharacterBreak       string = "┣"
	BoxCharacterStart       string = "┏"
	BoxCharacterBar         string = "━"
	BoxCharacterBarBreak    string = "┗"
	TableCharacterUnderline string = "-"
	TextStyleBold           string = "\033[1m"
	TextStyleReset          string = "\033[0m"
	TextStyleUnderline      string = "\033[4m"
	TextColorRed            string = "\033[31m"
	ConsoleClearLine        string = "\033[2K"
	TextLineConstructor     string = "%s%s%s"
	MACAddressConstructor   string = "%v:%v:%v:%v:%v:%v"
	IPAddressConstructor    string = "%v.%v.%v.%v"
)

General

View Source
const (
	TxtDashboardTitle           string = "Server Dashboard"
	TxtStatusOnline             string = "Online "
	TxtStatusOffline            string = "Offline"
	TxtDashboardChecking        string = "Please wait... Checking Services"
	TxtDashboardCheckingService string = "Checking %v..."
	TxtNoResponseFromServer     string = "No response from server"
)

Dashboard

View Source
const (
	TxtDiskSizeTitle     string = "Disk Size"
	TxtDiskSizeResults   string = "Disk Size - Results"
	TxtDiskSizeReport    string = "Disk Size - Report"
	TxtDiskSizePrompt    string = "Choose (Q)uit"
	TxtFileSizesOfNFiles string = "File Sizes of %v files"
	DUOutputConstructor  string = "%5d b | %5.2f kb | %5.2f mb | %5.2f gb | %5.2f tb | %s"
)

Disksize

View Source
const (
	TxtCleanFileNames           string = "Clean File Names"
	TxtCleanFileNamesResults    string = "Clean File Names - Results"
	TxtCleanFileNamesReport     string = "Clean File Names - Report"
	TxtStartingCleanFileNames   string = "Starting file name cleanse"
	TxtNoFilesFoundInFolder     string = "No files found in folder %s\n"
	TxtProcessingNFilesIn       string = "Processing %d files in %v"
	TxtProcessedNFilesIn        string = "Cleaned %d filenames in %s"
	TxtNoFilesProcessed         string = "No files cleaned in %s"
	TxtOnlyFans                 string = "OnlyFans"
	FileExtensionMP4            string = ".mp4"
	TxtOnlyFansFilename         string = TxtOnlyFans + FileExtensionMP4
	TxtRemamedFile              string = "Renamed file [%s -> %s]"
	TxtProcessing               string = "Processing %v type files"
	TxtRemovingEmptyDirectories string = "Removing empty directories"
	TxtFindingEmptyDirectories  string = "Finding empty directories"
)

CleanFileNames

View Source
const (
	TxtTidyFilesTitle                        string = "Clean Media Folders"
	TxtTidyFilesTitleResults                 string = "Clean Media Folders - Results"
	TxtStorageReportTitle                    string = "Clean Media Folders - Report"
	TxtTidyFilesBefore                       string = "BEFORE  : %v available out of %v total (%vperc used)"
	TxtTidyFilesAfter                        string = "AFTER   : %v available out of %v total (%vperc used)"
	TxtTidyFilesMachine                      string = "MACHINE : %v"
	TxtTidyFilesHost                         string = "HOST    : %v"
	TxtTidyFilesUser                         string = "USER    : %v"
	TxtTidyFilesMode                         string = "MODE    : %v"
	TxtTidyFilesTypes                        string = "TYPES   : %v"
	TxtTidyFilesEnd                          string = "END     : %v"
	TxtResolvedPath                          string = "Resolved path: %v"
	TxtDebugMode                             string = "TRIAL"
	TxtLiveMode                              string = "LIVE"
	TxtTidyFilesWouldHaveRemoved             string = TxtDebugMode + ": Would have removed empty directories"
	TxtRemovingFilesWithExt                  string = "Removing all files with extension .%v"
	TxtFindingFilesWithExt                   string = "Finding all files with extension .%v"
	TxtOperationComplete                     string = "Operation on .%v files completed in %v"
	TxtOperationCompleteIncomplete           string = "Operation completed in %v"
	TxtTidyFilesStart                        string = "Starting file removal process for %v"
	TxtFileTypes                             string = "File Types"
	TxtAreYouSureYouWantToProceed            string = "Are you sure you want to proceed"
	OptAreYouSureYouWantToProceed            string = "y/n"
	TxtChangingDirectory                     string = "Changing directory to %v"
	TxtTidyFilesDeletingDirectories          string = "Deleting empty directories"
	TxtTidyFilesDeletingDirectoriesCompleted string = "Deleting empty directories completed in %v seconds"
	TxtCommandRun                            string = "Command run: %v"
	TxtLiveRun                               string = "This is a live run. Files will be deleted."
	TxtTrailRun                              string = "This is a trial run. Files & Folders will not be deleted."
	TxtMode                                  string = "Mode"
	TxtPath                                  string = "Path"
)

TidyFiles

View Source
const (
	TxtPushoverMsgPriorityEmergency string = "Emergency Message"
	TxtPushoverMsgPriorityNormal    string = "Normal Priority"
	TxtPushoverMsgPriorityHigh      string = "High Priority"
	TxtPushoverMsgPriorityLow       string = "Low Priority"
	TxtPushoverPrompt               string = "Choose a message type to send"
	TxtPushoverConfirmation         string = "Choose (S)end or (Q)uit"
	TxtPushoverMessageTitlePrompt   string = "Enter the title of the message, or (Q)uit"
	TxtPushoverMessageBodyPrompt    string = "Enter the body of the message, or (Q)uit"
	TxtPushoverMessageSending       string = "Sending Pushover Message"
	TxtPushoverMessageSent          string = "Pushover Message Sent"
)
View Source
const (
	TxtFileChooserTitle string = "File Chooser"
	TxtFolderIcon       string = "+"
	TxtFileIcon         string = "#"
	TxtSymLinkIcon      string = "~"
)

FileChooser

View Source
const (
	TxtCatalogTitle        string = "Systems Catalog"
	TxtCatalogPrompt       string = "Choose a file to use"
	TxtCatalogConfirmation string = "Choose (S)end or (Q)uit"
)

Catalog

View Source
const (
	TxtFileMigratorTitle            string = "File Migration"
	TxtFileMigratorMode             string = "Mode"
	TxtFileMigratorModeCheckPrompt  string = "Are you sure you want to proceed, select (Y) to continue..."
	TxtFileMigratorFile             string = "File"
	TxtFileMigratorNoFilesToProcess string = "No Files"
	TxtFileMigratorDestination      string = "Destination"
	TxtFileMigratorResults          string = "RESULTS"
	TxtFileMigratorDonePrompt       string = "Processing Complete, select (Y) to continue..."
	TxtFileMigratorMoving           string = "Moving [%d/%d] [%20v][%20v]"
	TxtFileMigratorMovingArrow      string = " -> "
)

File Migrator

View Source
const (
	TxtBBCError string = "error with BBC News"
)

BBC

View Source
const TxtPagingPrompt string = "Choose (F)orward, (B)ack or (Q)uit"
View Source
const (
	//SymActionSeasons     string = "S"
	TxtPlexSeasonsPrompt string = "Choose (1...n)Season, (F)orward, (B)ack or (Q)uit"
)
View Source
const (
	TxtPushoverTitle string = "Pushover Messaging Service"
)

Variables

View Source
var (
	TxtServiceMenuDescription []string = []string{"This menu shows the list of services available for maintenance.", "Select the service you wish to use. PLEASE BE CAREFUL!"}
	TxtPushoverDescription    []string = []string{"Pushover is a service to receive instant push notifications on your phone or tablet from a variety of sources."}
)
View Source
var (
	TxtFileChooserDescription  []string = []string{"This menu shows the list of files available for maintenance.", "Select the file you wish to use. PLEASE BE CAREFUL!"}
	TxtFileChooserPrompt       string   = "Choose a file to use"
	TxtFileChooserConfirmation string   = "Choose (S)end or (Q)uit"
)
View Source
var ApplicationHeader []string = []string{
	"███████ ████████  █████  ██████  ████████ ███████ ██████  ███    ███ ",
	"██         ██    ██   ██ ██   ██    ██    ██      ██   ██ ████  ████ ",
	"███████    ██    ███████ ██████     ██    █████   ██████  ██ ████ ██ ",
	"     ██    ██    ██   ██ ██   ██    ██    ██      ██   ██ ██  ██  ██ ",
	"███████    ██    ██   ██ ██   ██    ██    ███████ ██   ██ ██      ██ ",
}
View Source
var (
	TxtCatalogDescription []string = []string{"This menu shows the list of files available for maintenance.", "Select the file you wish to use. PLEASE BE CAREFUL!"}
)

Functions

This section is empty.

Types

type Paragraph added in v0.0.3

type Paragraph struct {
	// contains filtered or unexported fields
}
var (
	//	TxtCleanFileNamesDescription []string   = []string{"This menu shows the list of files available for maintenance.", "Select the file you wish to use. PLEASE BE CAREFUL!"}
	CleanFileNamesDescription *Paragraph = NewParagraph([]string{"This menu shows the list of files available for maintenance.", "Select the file you wish to use. PLEASE BE CAREFUL!"})
)

func NewParagraph added in v0.0.3

func NewParagraph(message []string) *Paragraph

func (*Paragraph) Add added in v0.0.3

func (p *Paragraph) Add(message string)

func (*Paragraph) AddBlankRow added in v0.0.3

func (p *Paragraph) AddBlankRow()

func (*Paragraph) Len added in v0.0.3

func (p *Paragraph) Len() int

func (*Paragraph) String added in v0.0.3

func (p *Paragraph) String() []string

type Text added in v0.0.3

type Text struct {
	// contains filtered or unexported fields
}
var (
	//	ErrLibraryResponse    string = "library fetch error"
	PlexTitleLabel *Text = New("Title") // TODO: Change to Title
)

General TxtPlexTitleLabel represents the label for the title of a Plex item.

func New added in v0.0.3

func New(message string) *Text

func (*Text) Len added in v0.0.3

func (t *Text) Len() int

func (*Text) String added in v0.0.3

func (t *Text) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳