utils

package
v0.0.0-...-e42e14f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndentOne    = lipgloss.NewStyle().Margin(0, 0, 0, 2)
	IndentTwo    = IndentOne.Copy().Margin(0, 0, 0, 4)
	IndentThree  = IndentTwo.Copy().Margin(0, 0, 0, 6).MaxWidth(80)
	Title        = IndentOne.Copy().Bold(true).Background(lipgloss.Color("12")).Padding(0, 1).Foreground(lipgloss.Color("0"))
	TitleSec     = IndentTwo.Copy().Bold(true).Background(lipgloss.Color("13")).Padding(0, 1).Foreground(lipgloss.Color("0")).MarginBottom(1).MarginTop(1)
	ListItem     = IndentTwo.Copy().Bold(true)
	TitleSecAlt  = IndentTwo.Copy().Bold(true).Background(lipgloss.Color("14")).Padding(0, 1).Foreground(lipgloss.Color("0")).MarginBottom(1).MarginTop(1)
	TitleSecAlt2 = IndentTwo.Copy().Bold(true).Background(lipgloss.Color("11")).Padding(0, 1).Foreground(lipgloss.Color("0")).MarginBottom(1).MarginTop(1)
)

Functions

func GetAllLanguages

func GetAllLanguages() map[string]string

func PrintList

func PrintList(list []string) string

Types

type BackendResponse

type BackendResponse interface {
	PrettyPrint() string
	ShortTranslatedText() string
}

Jump to

Keyboard shortcuts

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