util

package
v0.0.0-...-33d7cd8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = []Language{}/* 194 elements not displayed */

Functions

func CheckConfig

func CheckConfig(filename string) (path string, exists bool, err error)

func CheckPath

func CheckPath(input string, inclHidden bool) (string, bool)

func CmdToString

func CmdToString(cmd string) (string, error)

func FindFiles

func FindFiles(s string) []string

func FormatUsername

func FormatUsername(a mastodon.Account) string

func GetAbsPath

func GetAbsPath(path string) (string, error)

func GetConfigDir

func GetConfigDir() (string, error)

func GetDefaultForOS

func GetDefaultForOS() (program string, args []string)

func IsDir

func IsDir(input string) bool

func MakeDirs

func MakeDirs()

func OpenURL

func OpenURL(url string)

func ReadLine

func ReadLine(r *bufio.Reader) (string, error)

func SetTerminalTitle

func SetTerminalTitle(s string)

func StatusOrReblog

func StatusOrReblog(s *mastodon.Status) *mastodon.Status

func TextFlags

func TextFlags(s string) string

Types

type Language

type Language struct {
	Code    string
	English string
	Local   string
}

type URL

type URL struct {
	Text    string
	URL     string
	Classes []string
}

func CleanHTML

func CleanHTML(content string) (string, []URL)

func CleanHTMLStyled

func CleanHTMLStyled(content string) (string, []URL)

Jump to

Keyboard shortcuts

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